PHP Paypal redirect question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well I am not looking for anything nearly as advanced as an API or IPN I simply want just uses the paypal button redirect. So that when the payment is finished they can go to my page and add their information to the database.
Basicly I want to use this:
if( $_SERVER['HTTP_REFERER'] == "www.paypal.com" ){
///Do my stuff
} else {
//Blocked
}
The main issue is that I don't know how to A) have it include all redirects from paypal or B) know the static paypal redirect link for when a payment is successful.
Anyways if anyone can help me with this or have a better way, I would greatly appreciate it.
~John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Auto Return.
"Auto Return" immediately brings your buyers back to your specified URL upon payment completion. This feature replaces the standard PayPal hosted "Payment Done" page with a page hosted on your website.
To set up Auto Return, you need to turn it on in your Account Profile and enter the return URL that will be used to redirect your buyers back to your site.
Log in to your Account
Select "Edit Profile"
Under "Selling Preferences"
Select "Website Payment Preferences"
Note first option - Select "On" - Auto Return for Website Payments
Enter the Return URL.
Click "Save."
The Return URL specified in your PayPal Account is good for all transactions however, you can override this by using the "return" variable in your individual item button code and direct the buyer to a different URL. The example line below is for "clear text" item button code:
<input type="hidden" name="return" value="http://www.yourwebsite.com/successful.html">
How Auto Return Works:
* If the buyer pays with a PayPal account, they are automatically taken back to the site.
* If the buyer pays with the Credit Card Option, they are taken to the receipt page where PayPal gives them the chance to print out a receipt. This is a legal requirement. After that, the buyer must click on the "Return to Merchant" link in order to return to the site.
Notes: The Credit Card Option or PayPal Account Optional is turned on by default for new PayPal Premiere and Business accounts. With PayPal Account Optional turned off, people without PayPal accounts must sign up for a PayPal account. They can pay by credit card, but they must agree to sign up for a PayPal account before completing their transactions and making their payments. Only Premiere or Business accounts have PayPal Account Optional in their account profiles. With Personal accounts, the checkout experience is as if PayPal Account Optional were turned off.
Regards,
skier
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Suspiscious Text in Access and security
- Does this email belongs to paypal? in Access and security
- Does Paypal do customer support in My Feedback for PayPal
- Account on hold and adding money in About Payments
- I sent PP a check & It was delivered yesterday, How long does this process take? in About Payments