Page 1 of 1

Paypal redirect

Posted: Fri Jul 09, 2010 10:04 am
by deshmukh999
Hi Guys,

I integrated PayPal payment gateway successfully.
But how to redirect on my website after making transaction, How come to know is transaction done successfully or not.

What parameter PayPal returns after the transaction?

Please help me to get it done?

Re: Paypal redirect

Posted: Fri Jul 09, 2010 2:06 pm
by Jade
You need to look on the paypal developers website.... https://cms.paypal.com/us/cgi-bin/?cmd= ... umentation

Re: Paypal redirect

Posted: Fri Jul 09, 2010 3:43 pm
by websitesca
If you simply want paypal to redirect to your website after you can enable that in your account.

Go to Profile > Website Payment Preferences

Then turn ON Auto Return - and enter the URL it should go to.

ALSO! If you want to be notified of a payment, there is Paypal Instant Payment Notification (IPN).
You enable it in Profile > Selling Preferences > Instant Payment Notification Preferences
All you do is specify a URL. Then Paypal will make a POST request to that URL with all the details of the transaction in the background!

You can design your website so that the payment is taken, then redirect to a page that says the transaction is in process. Then when the IPN request comes in, that can flip a code in your database which says the transaction is complete.

Hope that helps!
Georges,
http://www.websites.ca

Re: Paypal redirect

Posted: Sat Jul 10, 2010 12:25 am
by deshmukh999
Thank you for your reply,
Actually I want to know what variables PayPal returns after transaction , so that I could get it into $_REQUEST['status _parameter'] and could come to know transaction done successful or not, as well i would be able to display success or failure message.

Please reply me.

Re: Paypal redirect

Posted: Mon Jul 12, 2010 9:20 am
by Jade
There is a ton of documentation on the PayPal website with example code in PHP and everything. I'm not sure why you're asking about stuff like that here.... the Paypal website should be your first resource not a generalized PHP forum. Now if you run into a problem trying to implement something or some kind of error in your PHP then this is the right place to ask.