-
Notifications
You must be signed in to change notification settings - Fork 106
Nothing in "agreement_transaction_list" after checking the transaction had been completed #1352
Comments
This happened to me, too. Executing |
I found that this function is related to api
There is a notice that "/v1/payments/billing-agreements" endpoints are deprecated and they recommend to use "/v1/billing/subscriptions" instead. |
They are deprecated, but I'm supporting an app with legacy code which is not ready to be upgraded. And as far as I know, the Subscriptions API is not compatible with Billing Plans and Billing Agreements APIs. |
Does It mean that getting Transaction Id by using Agreement Id is impossible for now? |
@Raphoon I think they finally fixed it! |
Are you still able to get right data? |
Yes, it works as expected. |
I think there should be some delay between payment and retrieving. request right after the payment still bring empty array. But after some seconds(almost a minute) it works right. |
For me on sandbox mode it has always been like this - around 4-5 minutes delay before the payment becomes available and the billing agreement state transitions from pending to complete. And I think during production transactions are almost immediately available and Billing Agreement doesn't have a pending status. |
General information
Issue description
this is sandbox data
I checked that transaction had been completed but when I get the transaction lists by using
Agreement::searchTransactions function I got nothing in array "agreement_transaction_list".
Agreement::searchTransactions( "I-2V5TB3SA2DYT", array( 'start_date' => date('Y-m-d', strtotime('-15 days')), 'end_date' => date('Y-m-d', strtotime('+15 days')) ), $this->ApiContext );
The text was updated successfully, but these errors were encountered: