AuthorizeNet/sample-code-php

getArbTransactions() is not returning any transactions

Closed this issue · 2 comments

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.

  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?

#1 was what I missed.
Thank you very much for your help.