954,358 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Paypal return URLs

Hi,

I know that we can define a return URL in forms for paypal payments. I wonder if we can define two return urls, one for success and another for fail pages. I looked arround but couldn't find proper info. Does anyone know if it can be done?

Thanks

veledrom
Master Poster
756 posts since Apr 2008
Reputation Points: 42
Solved Threads: 0
 

As far as I know, there can only be one call page for PayPal and it will include message with valid or invalid CC, etc

cfwebdeveloper
Junior Poster in Training
78 posts since May 2011
Reputation Points: 19
Solved Threads: 8
 

I do not believe there is a way to do 2 ways.

rocco88
Junior Poster
103 posts since Jun 2011
Reputation Points: 5
Solved Threads: 2
 

I agree there's no other way for this, there can only be one URL for Paypal returns.

allyson_gss
Light Poster
35 posts since Jun 2011
Reputation Points: 10
Solved Threads: 0
 

Hi !
All the programming is based on the binary system.In a binary there are only two values 0 or 1,true or false.At a one time you can do only one operation from both.

Jashandeep
Junior Poster in Training
94 posts since Oct 2011
Reputation Points: 5
Solved Threads: 4
Infraction Points: 5
 

As the above posters have said, PayPal only accepts one Return URL. However, you can also define a Cancel URL for if the user cancels the transaction while on the PayPal site. Perhaps this is what you are looking for? Check this list of PayPal HTML variables for more info. I believe that the variable in question is called "cancel_return".

Alternatively, if you're interested in receiving information from PayPal about whether a transaction has been successful or not, you need to configure Instant Payment Notifications. These are POST requests from PayPal which go to a special URL which you provide, containing a lot of information about the transaction. Setting these up is an entirely different barrel of monkeys, however. I'd recommend reading PayPal's guide to IPNs if this is the functionality that you're looking for. It is really useful so definitely worth checking out.

Hope this helps!

FairBit
Newbie Poster
2 posts since Nov 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You