Quote:
Originally Posted by Kgirl
In what cases I use this 2 options??
<input type="hidden" name="return" value="http://www.yoursite.com/success.cfm" /> <!--- page having code to take care of success condition --->
after the user pays?? like "congratulations your order succed or something???
if the customer decide to cancel the order?? I do not understand because we are using a valid email or not????
<input type="hidden" name="cancel_return" value="http://www.yoursite.com/failure.cfm" /> <!--- page having code to take care of failure condition --->
The code was suggested by someone else, but I'll try explaining it.
I'm not sure exactly what fields Paypal requires in a post request, but yes, the return field is for dealing with a successful transaction, whereas the cancel_return deals with a failed transaction (e.g. user cancels, or details not accepted, etc.).
The code is just an example, you should of course real values including a valid business email.
One other thing is that I personally don't approve of this method because of security reasons. I suggest you use a HTTP POST request using
cfhttp.