Skip to content

Commit

Permalink
adding the subscription data in transastion detail response.
Browse files Browse the repository at this point in the history
  • Loading branch information
ksondere committed May 6, 2014
1 parent 4ecb348 commit 311e133
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spec/reporting_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,21 @@
response.success?.should be_true
response.should respond_to(:transaction)
end

it "should be able to fetch arb transaction details" do
# this transaction was setup previously.
=begin
# To get this test to run. You must setup an ARB subscription. After the subscription runs a transaction get
# the transaction_id and put it in this test.
it "should be able to fetch transaction details with subscription info" do
transaction_id = 2212429253
transaction = AuthorizeNet::Reporting::Transaction.new(@api_login, @api_key, :gateway => :sandbox)
transaction.should respond_to(:get_transaction_details)
detail_response = transaction.get_transaction_details(transaction_id)
detail_response.success?.should be_true
detail_response.should respond_to(:transaction)
detail_response.transaction.subscription_id.should == 2072134
detail_response.transaction.subscription_paynum.should == 1
end

=end
describe "parsing batch statistics" do
before do
@response = '<getSettledBatchListResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
Expand Down Expand Up @@ -397,9 +400,6 @@

transaction = AuthorizeNet::Reporting::Transaction.new(@api_login, @api_key, :gateway => :sandbox)
transaction.should respond_to(:get_transaction_details)
#transaction_id = 2212429253
#old_transaction_id = 2156246780
2156246780
response = transaction.get_transaction_details('2212429253')
response.success?.should be_true
response.should respond_to(:transaction)
Expand Down

0 comments on commit 311e133

Please sign in to comment.