PayPal POST payment vars not present on mobile checkout

♀尐吖头ヾ 提交于 2019-12-10 14:36:53

问题


I'm using the JS Buy It Now button for payments, like this:

<script src="paypal-button.min.js?merchant=qwertyseller@gmail.com"
                data-env="sandbox"
                data-button="buynow"
                data-name="Product"
                data-amount="1"
                data-currency="GBP"
                data-shipping="0"
                data-tax="0"
                data-callback="http://1.1.1.1/paypal/paypalipn.php"
                data-return="http://1.1.1.1/paypalreturn.php"
                data-cbt="Click here to finish!"
                data-no_note="1"
                data-no_shipping="1"
                data-rm="2">
</script>

When I reach http://1.1.1.1/paypalreturn.php on Mobile Safari, $_REQUEST is empty. That is, I don't get any payment-related form variables back, even tough I've set data-rm to 2. It works as expected on desktop browsers. I can reproduce this by setting my UA to that of the iPhone. Is this a bug? Note that I am still testing on the Sandbox, so perhaps it only happens there.

Apparently I can get the same info as what is posted to my return page by using Auto Return and PDT, can I use that instead?

来源:https://stackoverflow.com/questions/18174585/paypal-post-payment-vars-not-present-on-mobile-checkout

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!