我是 paypal 的新手,我过去使用过平衡支付。
考虑以下场景
I'm running a business of renting vehicles when a customer registers to rent i have to deduct the rent amount(no of days * rent amount per day) from his account and have a hold for the deposit amount of the vehicle which will be returned to customer when he returns vehicle
我浏览了 paypal 文档,但找不到如何手动创建此保留
我正在寻找等同于 CREATE HOLD 的东西和 RELEASE HOLD的 balanced在 Paypal
最佳答案
我认为 PayPal 中最适合您描述的功能的机制是授权/捕获。
您可以让用户使用 PayPal Express Checkout API 授权支付押金金额和租金金额。当客户还车时,您可以使用 DoCapture API 调用捕获付款。
此模型还支持同一授权的多次捕获。例如,您可以使用该功能每天记录租金支付情况。
关于paypal - 我们如何在 Paypal 中手动创建和解除卡住?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19225561/