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).
I read this docs from paypal about adaptive payment flow , this about mobile integration and this about IPN server side implementation.
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. 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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.