paypal redirect on successful checkout
Posted
by
Graeme Leighfield
on Stack Overflow
See other posts from Stack Overflow
or by Graeme Leighfield
Published on 2012-11-20T10:51:48Z
Indexed on
2012/11/20
11:01 UTC
Read the original article
Hit count: 379
I am trying to get my Paypal subscription to redirect to a custom page after a successful checkout.
Before submitting to Paypal I overload the submit handler, run my own function (to store details) and return a unique id. I want to attach that id to my return URL. (as a GET or POST var so to speak)
I have turned auto redirect "on" in my Paypal sandbox sellers preferences, but it only seems to re-direct to the URL that I HAVE to put in there.
using the <input type="hidden" name="return" value="someurl" />
does no seem to work.
I want it this way so that I can capture the user information when entered with a "non-paid" flag, then via the IPN I can update that record with a "PAID" flag, and I want to use the unique ID to tie it all together so to speak.
Any advice or a different approach is welcomed.
Many thanks!
© Stack Overflow or respective owner