How to check Billing Agreement is active or cancel?

给你一囗甜甜゛ 提交于 2020-04-15 22:57:32

问题


I am using Reference Transaction API in PayPal and not sure whether Billing Agreement is active or not while billing. I would like to know in advance if Billing Agreement is cancelled.

I am wondering to have callback call on Billing agreement cancel call.


回答1:


to check the status of a Billing Agreement you can use the BAUpdate API (NVP: METHOD=BillAgreementUpdate).

Normally this API is used to delete a Billing Agreement, but if you use it without the BillingAgreementStatus field, it returns the current status of Billing Agreement, allowing you to know if a Billing Agreement is still valid or not.

In fact if a Billing Agreement is no longer valid, Paypal will respond with an errorcode 10201 "Billing Agreement was cancelled"

source API Operations for Reference Transactions, Angell EYE PayPal NVP CodeIgniter Library (PHP)

Regards



来源:https://stackoverflow.com/questions/12698471/how-to-check-billing-agreement-is-active-or-cancel

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!