简体   繁体   English

贝宝不在移动浏览器上的返回URL上发布数据

[英]Paypal not posting data on Return url on mobile browsers

I am using html form to integrate Paypal and my form is as 我正在使用html表单来集成Paypal,而我的表单是

<form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="POST">
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="hosted_button_id" value="XXXXXXXXXX">
<input type="hidden" name="business" value="admin@domain.com" />
<input type="hidden" name="item_name" value="Item Name" />
<input type="hidden" name="quantity" value="1" />
<input type="hidden" name="amount" value="100.00" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="return" value="http://domain.com/success" />
<input type="hidden" name="cancel_return" value="http://domain.com/fail/" />
<input type="hidden" name="cbt" value="Please Click here to Complete Your Order" />
</form>

When I am testing this Website code on desktop browsers this is posting paypal data back on return url perfectly. 当我在桌面浏览器上测试此网站代码时,这是将Paypal数据完美地返回到返回URL上。 But when I am testing same website code on my Mobile browser payapl is not posting back any data on return url. 但是,当我在移动浏览器上测试相同的网站代码时,payapl并没有在返回URL上回发任何数据。 It just get back on return url without any data. 它只是返回没有任何数据的返回URL。

Please help me. 请帮我。

do you get ANY kind of request on callback on mobile? 您在移动设备上收到任何形式的回叫请求吗? You should log every POST request on callback page and review them 您应该在回调页面上记录每个POST请求并进行审查

also try with notify_url as well, IPN should be sent here 也尝试使用notify_url ,IPN应该在这里发送

请设置“ no_note”请参见以下链接链接: http : //www.paypalobjects.com/en_US/ebook/subscriptions/html.html

I'm pretty sure your problem is that you need to add this line to your code: 我很确定您的问题是您需要将此行添加到代码中:

<input type="hidden" name="no_note" value="1">

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM