PayPal API-授权后增加订单金额。最好的结帐流?
我们正在使用PayPal / Braintree API。
授权原始订单金额后,处理订单量增加的正确方法是什么?
理想情况下,我们希望将客户送往PayPal一次,然后他们在我们的交货页面上选择他们的首选交货,而无需将客户送回PayPal以receauth。
这可能吗?
交货金额可能很大,这将使它超过115% / $ 75的限制。
谢谢。
We are using the PayPal / Braintree API.
What is the correct way of dealing with an increasing order amount (example: delivery costs), after the original order amount has been authorised?
Ideally, we want to send the customer to PayPal once, then they select their preferred delivery on our delivery page, without then sending the customer back to PayPal to ReAuth.
Is this possible?
The delivery amounts can be fairly large, that would take it above the 115% / $75 restrictions.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不那样吗?
付款后被付款人批准,但在授权交易之前,请显示审核步骤。使用选定的地址计算任何适用的运输和税收。如果适用,提供运输方法的选择。
当计算新总数时,当用户提供最终确认时,请使用新金额创建Braintree交易( braintree中的贝宝付款方式或更普遍地使用Braintree )。这类似于使用非Braintree PayPal REST API以更新(修补)数量捕获订单。
最后一个细节是,由于您在批准后有一个审核步骤,如果使用PayPal SDK,则应设置commit:false(默认为true),以便最后一个按钮具有正确的杂语,表明返回您的进一步步骤地点。有了braintree,这看起来像:
Don't do that?
After payment is approved by the payer, but before authorising a transaction, show a review step. Use the selected address to calculate any applicable shipping and tax. Offer a choice of shipping methods if applicable.
When the new total is calculated, and when the user gives final confirmation, create the braintree transaction with the new amount (PayPal payment method in Braintree, or more generally with Braintree). This is analogous to using the non-Braintree PayPal REST API to capture an order with an updated (patched) amount.
One final detail is that since you have a review step after approval, if using the PayPal SDK you should set commit: false (it defaults to true) so that the last button has the correct verbiage indicating there is a further step on returning to your site. With Braintree this looks something like: