简体   繁体   English

贝宝自适应预付款

[英]Paypal Adaptive Preapproval Payments

I was digging a lot in Paypal documentation about Preapproval Payments and I can't find if it allows to just create a preapproval contract without actually creating a payment. 我在贝宝(Paypal)文档中挖掘了很多有关预批准付款的信息,但我发现它是否只允许创建预批准合同而无需实际创建付款。 The example shows that I can pass a parameter to show a checkbox for preapproving future payments. 该示例表明,我可以传递参数以显示用于预先批准未来付款的复选框。

The thing is I'd like to make sure every user on website has his PP account preapproved before they start buying stuff so I'd like to check first if preapproval key exists in database and if not then allow user to preauthorize future payments so only then they can start buying. 事情是我想确保网站上的每个用户在开始购买商品之前都已预先批准其PP帐户,因此我想先检查数据库中是否存在预批准密钥,如果不存在,则允许用户预授权将来的付款,因此然后他们可以开始购买。

So is there an option to preapprove before user actually buy something ? 那么,在用户实际购买商品之前,是否可以选择预先批准? I've seen somewhere that you can pass 0 as amount of order, but I can't really find where did I saw it. 我在某个地方看到可以传递0作为定单数量,但是我真的找不到在哪里看到它。 Thanks in adavance. 非常感谢。

Yes, the Preapproval API can be called on its own entirely separate from any Pay calls. 是的,可以独立于任何Pay调用单独调用Preapproval API。 Preapproval by itself does nothing more than generate the preapproval key so you can save it accordingly. 预先批准本身仅产生生成预先批准的密钥,因此您可以相应地保存它。

From that point on you can pull that key any time you want to generate a Pay request for that person. 从那时起,您随时可以为该人生成“付款”请求时拔出该键。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM