PayPal 中的延迟链式付款(辅助接收方最初未知)
通读 PayPal 的 API 文档,我没有看到明确的方法来做到这一点,但我不想假设这是不可能的,因为我不知道如何做到这一点。
用例:我正在为客户构建一个市场,允许消费者购买商品服务,然后我们找到一个提供商来履行该服务。 (由于保密和无关性,省略了具体细节)
问题:在购买时提供商未知,但我们希望在消费者购买服务时授权付款(并且完成后触发付款)。
来自 PayPal 的自适应支付 API 我看看可以创建一个 延迟链接付款(即很棒),但辅助接收器必须在创建时声明。这是不可能的,因为我们还不知道谁将满足消费者的要求。
一种有点幼稚的解决方案是让消费者直接向我们付款,然后我们触发我们和提供商之间的二次交易。这不太好,因为它会产生双倍的交易费用。
还有其他方法可以通过 PayPal 实现此目的吗?是否还有其他更适合的支付提供商?
谢谢!!
Reading through PayPal's API documents I don't see a clear way to do this, but I don't want to assume that it's impossible because I don't know how to do it.
Use case: I'm building a marketplace for a client that allows a consumer to purchase a commodity service, then we find a provider to fulfill that service. (specifics are omitted for confidentiality and irrelevancy)
The problem: At the time of purchase the provider is unknown, but we want to authorize payment when the consumer buys the service (and trigger payment after fulfilled).
From PayPal's Adaptive Payments API I see it's possible to create a Delayed Chained Payment (which is great), but the secondary receiver must be declared when created. That's not possible because we don't yet know who's going to fulfill the consumer's request.
One somewhat naive solution is to have the consumer pay us directly, then we trigger a secondary transaction between us and the provider. This isn't great because it incurs double the transaction fees.
Is there another way to accomplish this with PayPal? Is there another payment provider that might be a better fit?
Thanks!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
权限 API 应该允许您稍后在各方都知道的情况下代表买家设置付款。
The Permissions API should allow you to setup the payment on behalf of the buyer at a later time, when all parties are known.
如果辅助接收者未知 - 实现这一点的最佳方法可能是获得用户的预先批准,然后用它来支付未来的辅助接收者。操作方法如下:
https:// developer.paypal.com/docs/classic/adaptive- payments/ht_ap-basicPreapproval-curl-etc/
If the secondary receiver is unknown - probably the best way to implement this is to obtain a Preapproval from the user and then use it to pay the secondary receiver in the future. Here is how you can do it:
https://developer.paypal.com/docs/classic/adaptive-payments/ht_ap-basicPreapproval-curl-etc/