哪个 API 将允许我将 PayPal 保存为可重复使用的付款类型 [英] Which API will allow me to save PayPal as a reusable payment type

查看:14
本文介绍了哪个 API 将允许我将 PayPal 保存为可重复使用的付款类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在开展一个项目,将 PayPal 实现为类似于已保存信用卡的可重复使用的付款方式.我已经在像 http://www.fab.com 这样的网站上看到过这种做法,它允许用户登录 PayPal时间,然后存储他们的付款信息以备将来购买.查看不同的 API,我不确定哪一个符合此描述.

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.

澄清一下,我不想使用 PayPal 来获取信用卡信息,我只想授权使用默认付款选项".

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.

推荐答案

您需要的是帐户上的参考交易,然后您将在初始 SetExpressCheckout 调用中添加一个变量:

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

L_BILLINGTYPE0=MerchantInitiatedBilling

L_BILLINGTYPE0=MerchantInitiatedBilling

当客户完成结帐时,您将收到一个 BAID,您可以在将来使用 CreateReferenceTransaction 引用该 BAID.

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

为了在真实环境中使用参考交易,您的业务必须获得批准(联系您的客户经理或 PayPal 业务支持).为了在测试环境中进行开发,必须在将接收付款的沙盒业务帐户上启用参考交易.为此,请联系 www.paypal.com/mts,并将您创建的沙盒企业帐户的电子邮件地址发送给他们.

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.

这篇关于哪个 API 将允许我将 PayPal 保存为可重复使用的付款类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆