开发者

paypal IPN works but stuck at paypal's thank you page!

my paypal ipn php works correctl. i tested it out with sandbox account, and the payment works, my database is updated properly etc.

however, I expected the page to redirect back to my shopping site. instead it just sits at paypal's Thank You For your Payment page.

开发者_开发百科

how can i make it redirect back to my shopping site ?


In the payment form, you have to set a return field.

<input type="hidden" name="return" value="http://mywebsite.com/success.php" />

This will give the user a button that says: Go back to merchant's page. Additionally, if you want them to automatically be redirected back to your shopping site, without clicking anything, there's a profile option, in the PayPal website, called Auto Return.

Hope this helps :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜