[英]paypal chained payment (or adaptive) inside iOS app + server integration
I want to implement paypal chained payment (is't one of the adaptive payment methods) within a marketplace iphone app and I want my server to be able to track all the payment steps to avoid multiple concurrent purchases on the same product (it's a physical product and it can't be purchased twice). 我想在市场上的iphone应用程序中实现paypal链式支付(不是自适应支付方式之一),我希望我的服务器能够跟踪所有支付步骤,以避免在同一产品上多次并发购买(这是物理的产品,它不能购买两次)。
I read this docs from paypal about adaptive payment flow , this about mobile integration and this about IPN server side implementation. 我从paypal阅读了关于自适应支付流程的文档,这是关于移动集成的 ,关于IPN服务器端实现。
Now the only way to achieve this seems doing the following: 现在实现这一目标的唯一方法似乎是:
I wouldn't make this kind of things for these reasons: 出于以下原因,我不会做出这样的事情:
Any suggestions? 有什么建议么?
At the end the working approach for us was using paypal preapproval. 最后,我们的工作方法是使用paypal preapproval。 if you don't know what a preapproval is, imagine a bank rid: you ask the user the permission to charge him at anytime, in our case we charge the seller for a fee commission when he sells an item. 如果您不知道预先批准的是什么,想象一下银行摆脱:您要求用户随时向他收取费用,在我们的情况下,我们会在销售商品时向卖家收取费用佣金。
keeping the seller outside of the transaction flow, permitted us to let the buyer completes the checkout using the express checkout implementation, from within an embedded webview. 将卖家保持在交易流程之外,允许我们让买家在嵌入式网页浏览中使用快速结账实施完成结账。
with this technique, you are basically asking the buyer to pre-authorize a payment. 使用这种技术,您基本上是要求买方预先授权付款。 after he grants the permission you pass a secret token back to your webserver where the real payment is performed (along with any other secure validation). 在他授予许可后,您将秘密令牌传递回您执行真实付款的网络服务器(以及任何其他安全验证)。
after moving the money from the buyer to the seller, we charge the seller for the transaction using the preapproval. 在将钱从买方转移到卖方后,我们使用预批准向卖方收取交易费用。
please let me note that at the end we are not using the real paypal chained payment, but for us this approach was good and everything seems to work fine by now. 请让我注意,最后我们没有使用真正的paypal链式付款,但对我们来说这种方法很好,现在一切似乎都运行良好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.