本文介绍了贝宝立即付款按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在查看PayPal API文档之前,有太多东西要看了,我想我会在这里要求从做过类似事情的人那里获得更明确的答案.

Been looking at the PayPal API documentation, there is so much to look it i thought i would ask here to get a more clear answer from someone that's done similar.

我希望在Web应用程序中的用户为其客户生成的发票中添加立即付款" PayPal按钮.因此,付款绝对不会付给我.我了解该按钮可能是最好的选择,但是它必须是加密的按钮才能更安全.

I'm looking to add a 'pay now' PayPal button to invoices that are generated by users within a web app for their customers. So a payment should never reach me at all. I understand that the button is probably the best option however it will need to be the encrypted button to be more secure.

我了解我需要使用我的PayPal帐户才能访问API并生成这些加密按钮?实际上,这只是设置项目,成本和业务参数的问题,我不希望任何交易打入我的帐户.

I understand i need to use my PayPal account to be able to access the API and generate these encrypted buttons? it's literally just a matter of setting the item, cost and business parameters really, I don't want any transaction hitting my account.

我有什么选择?甚至有可能.

What are my options? and is this even possible.

谢谢!

推荐答案

如果您熟悉Web服务API,则完全跳过标准按钮,而直接使用付费API .

If you're familiar with web service API's skip the standard buttons altogether and just go with the Pay API.

这将使用户可以通过登录PayPal或使用信用卡(客人结帐)轻松付款.在大多数情况下,用户将在结帐时对付款进行身份验证,但是您也可以使用人们使用预先批准配置文件的功能,以便将来的付款是自动的(或单击或您想要的任何方式.)您可以使用预批准API 为用户生成预批准密钥,然后将来的付款"请求可以包含用于立即付款的密钥,而无需进一步的验证.

That will allow users to easily pay by signing in to a PayPal or using a credit card (guest checkout). In most cases users would be authenticating the payment during checkout, but you could also tie in the ability for people to use Preapproval profiles so that future payments are automatic (or one-click, or whatever you want.) You use the Preapproval API to generate a preapproval key for the user, and then future Pay requests can include that key for immediate payment without further authentication.

如果您使用的是PHP,则我的类贝宝(PayPal)库将为您简化这一过程.

If you're working with PHP my class library for PayPal will make this very simple for you.

这篇关于贝宝立即付款按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 17:44