简体   繁体   中英

Paypal not posting data on Return url on mobile browsers

I am using html form to integrate Paypal and my form is as

<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. But when I am testing same website code on my Mobile browser payapl is not posting back any data on return url. It just get back on return url without any data.

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

also try with notify_url as well, IPN should be sent here

请设置“ 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.

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.

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