Which API will allow me to save PayPal as a reusable payment type

末鹿安然 提交于 2021-01-27 23:31:40

问题


I am currently working on a project to implement PayPal as a reusable payment option similar to a saved credit card. I have seen this done on websites like http://www.fab.com which allows users to sign into PayPal one time, and then stores their payment information for future purchases. Looking over the different APIs, I am not sure which one fits this description.

Just to clarify, I do not wish to use PayPal to capture credit card information, I only want to authorize the "Default Payment Option" for use.


回答1:


What you need are reference transactions on the account, and then you will add a variable to your initial SetExpressCheckout call:

L_BILLINGTYPE0=MerchantInitiatedBilling

When the customer completes checkout, you will receive a BAID that you can then reference in the future with CreateReferenceTransaction.

In order to use reference transactions in the live environment, your business must be approved (contact your account manager or PayPal business support). In order to do your development in the test environment, reference transactions must be enabled on your sandbox Business account that will be receiving payments. Contact www.paypal.com/mts for this, and send them the email address of the sandbox Business account you've created.



来源:https://stackoverflow.com/questions/17888068/which-api-will-allow-me-to-save-paypal-as-a-reusable-payment-type

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