paypal / merchant-sdk-php

PHP SDK for integrating with PayPal's Express Checkout / MassPay / Web Payments Pro APIs
Other
230 stars 201 forks source link

DoReferenceTransaction - Agreement Id not valid #145

Closed melkors-lammoth closed 7 years ago

melkors-lammoth commented 7 years ago

Hi - I created an agreement using Paypal-API. The agreement is processing recurring payments every two weeks and I have verified using the sandbox dashboard. Due to the inability to change the amount of the billing agreement every two weeks I'd like to use the DoReferenceTransaction to charge the difference. I'm able to retrieve the agreement details using GetRecurringPaymentsProfileDetails in the sample but unable to process a DoReferenceTransaction. This is the message I receive: Billing Agreement Id or transaction Id is not valid. I passed the same id I used for GetRecurringPaymentsProfileDetails which seems to be the profile id. I also tried passing a transaction id from one of the recurring payments but get the same error. I'm unable to find any other id that I can pass. How can I find the agreement id or fix this error?

xiaoleih41 commented 7 years ago

Recurring payment billing agreement ID cannot be used for reference transaction payment. If your billing agreement involves various amount, please use reference transaction only for your billing agreement. Please follow the instructions on this site. to build your billing agreement by using reference transaction only.

melkors-lammoth commented 7 years ago

Thanks @xiaoleih41!