Paypal Adaptive payment for mobile web

后端 未结 4 641
走了就别回头了
走了就别回头了 2020-12-14 17:54

Im integrating Paypal Adaptive Payment API for a mobile website. But when Im submitting payment to

https://www.paypal.com/webscr?cmd=_ap-payment&paykey=value

4条回答
  •  爱一瞬间的悲伤
    2020-12-14 18:18

    There is actually a simple solution to this that isn't documented anywhere. We were in discussion with PayPal about adding it a while back so I am wondering if it eventually got implemented.

    Anyway, simply just redirect the user to the following URL and they will be redirected back to your site on completion:

    https://www.sandbox.paypal.com/webapps/adaptivepayment/flow/preapproval?preapprovalKey=PA-XXXXX&expType=redirect
    

    The difference here is using expType=redirect rather that expType=mini. I'm not sure when this was added but after a bit of reverse engineering and some experimenting we have a surprisingly simple solution.

提交回复
热议问题