Question

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.

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top