AuthorizeNet / sample-code-php

This repository contains working code samples which demonstrate php integration with the Authorize.Net API
MIT License
175 stars 197 forks source link

getArbTransactions() is not returning any transactions #125

Closed safrick closed 5 years ago

safrick commented 5 years ago

Using the sample-code-php/RecurringBilling/get-subscription.php

This line of code always returns an empty array. $transactions = $response->getSubscription()->getArbTransactions();

Note that the other details of the subscription are being returned and I've verified that there are transactions under 2 different ARB ID's, both in the sandbox and production.

ashtru commented 5 years ago
  1. Are you passing the includeTransactions as true in the request, similar to line 25 of the sample code?

  2. a. How old are the subscriptions? b. What is the status of the transactions in the sandbox/production?

  3. Can you share the contents of your phplog file which will have the full xml response from the API. You can find it in the same folder as your PHP SDK.

  4. Can you also share the code snippet for traversing the arbTransactions array?

safrick commented 5 years ago

1 was what I missed.

Thank you very much for your help.