Reputation: 8245
I've set up my PayPal button and I can make payments with it, so it does work.
I've set up redirecting and supplied the URLs to which I want PayPal to redirect (whether in case of cancelled or completed payments):
I realize that in the screenshot here, there's a / missing on the checkout path, but that's only because I "censored" the links after testing.
Is there anything more I need to do in order to make this redirect? All it's doing currently is spewing out the Thank You screen, which is great, but it's not what I need.
Can anyone suggest why it's not redirecting?
Upvotes: 0
Views: 875
Reputation: 1662
on the checkout page, look for the 'cancel_return' hidden form element:
<input type="hidden" name="cancel_return" id="cancel_return" value="" />
set the value of the cancel_return form element to the URL you wish to return to:
<input type="hidden" name="cancel_return" id="cancel_return" value="http://royaltytech.in" />
Upvotes: 0
Reputation: 1416
does your button (or rather form) have a return variable??
return -Optional - The URL to which PayPal redirects buyers' browser after they complete their payments. For example, specify a URL on your site that displays a "Thank you for your payment" page. Default – PayPal redirects the browser to a PayPal webpage.
edit: try this
<input type="hidden" name="return" value="http://www.mysite.com/thanks.html"/>
Paypal - redirect after payment to my own page
Upvotes: 1