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?
Paypal redirect
Moderator: General Moderators
Re: Paypal redirect
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
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
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
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.
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
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.