Paypal redirect

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
deshmukh999
Forum Commoner
Posts: 32
Joined: Mon Mar 15, 2010 2:01 am

Paypal redirect

Post 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?
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Re: Paypal redirect

Post by Jade »

You need to look on the paypal developers website.... https://cms.paypal.com/us/cgi-bin/?cmd= ... umentation
websitesca
Forum Newbie
Posts: 16
Joined: Fri Jul 09, 2010 2:47 pm

Re: Paypal redirect

Post 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
deshmukh999
Forum Commoner
Posts: 32
Joined: Mon Mar 15, 2010 2:01 am

Re: Paypal redirect

Post 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.
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Re: Paypal redirect

Post 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.
Post Reply