I'm using paypal payments with an IPN listener that redirect to a success.php page after payment. Currently testing with sandbox. All works fine except when clicking the pay now button, mostly it goes to the old style payment page but randomly it goes to the newer Paypal express payment page. This wouldn't be an issue except when it goes through the Paypal express page (not the old standard payment page), after payment is processed it redirects to the paypal users account page instead of the success.php as defined in the settings.
Is this just another sandbox glitch or is there a way to control which payment page it goes to. Also, how do I fix the redirect issue with Express payments.
Related
What could be the problem that PayPal doesn't send me back to return URL after payment is completed? This stopped to work only on payments by credit card, everything is working with direct PP payment.
I use an iFrame and I get the completed payment message "Thank you for your payment", but the message is in iFrame and I want to refresh the whole page after the payment. So after the verification function:
$verified = $ipn->verifyIPN();
I am redirecting to another page using:
header();
But it's not working on credit card payments.
Error:
Invalid 'X-Frame-Options' header encountered when loading 'https://www.paypal.com/hostedpaymentnodeweb/payWithCC': 'ALLOW' is not a recognized directive. The header will be ignored.
Also I tried this at the end of the PHP script:
echo '<script type="text/javascript">window.top.location.href = "https://www.test.com";</script>';
PayPal will redirect your buyer automatically to the URL that you have specify in your button code only when the payment made using PayPal account.
As mention from their site https://www.paypal-knowledge.com/infocenter/index?page=content&id=FAQ2056&pmv=print&impressions=false&viewlocale=en_US , this feature available only for PayPal payment upon successful completion.
If you're using Website payment standard also known as PayPal payment standard, I suggest you to pass variable name 'cbt' to customize the text that appear on redirection link so that those buyers (who're using credit/debit card payment) aware of this link.
You may refer to this link for list of custom variable that you can attach in your button code : https://developer.paypal.com/webapps/developer/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/
I am having trouble getting a transaction to complete using the PayPal Express Checkout IPN. Right now I am testing everything in Sandbox mode.
Using SetExpressCheckout, I am able to generate a token and am being redirected to the first payment page:
When I enter my login information, I am prompted to click the button to continue towards confirming the payment:
When I click Continue on that page, I am then redirected back to the first page. It is just an endless loop of these two pages.
My login information is correct and the sandbox account has enough funds in it to complete the sale. All of the buyer and purchase information is being sent correctly. I just can't figure out why I can't get past this step.
Any ideas?
I am using Paypal Sandbox account. I want to automatic page redirect my own website after payment successful order authorized.
Your transaction ID for this payment is: 8E7045675M462235P.
We'll send a confirmation email to ramesh#cognizsoft.com.
return to aman#cognizsoft.com
Go to PayPal account overview
Add funds from your bank
it's go to back on store when click on return to aman#cognizsoft.com
With Payments Standard there is no guarantee the user will make it back to your site. You can help things by enabling Auto-Return in your PayPal account profile, but even then the user could close the browser before the redirect happens and they would never make it there.
If you need to automate post-payment-processing tasks you can do that using IPN which will be triggered regardless of whether or not the user makes it back to your site.
If you would rather ensure that you will indeed end up on your site to finalize every checkout then you could switch to the Express Checkout API.
I am working on a project which will be able to accept paypal payments. The sequence I am using is as follows:
My current development sites' payment steps:
The user goes to my site,
Chooses to pay for something,
Is redirected to paypal,
The payment is completed on paypal,
Then the user gets redirected back to my sites success url.
This works fine, as I use an IPN listener to update my database in the background when paypal decides to confirm the committed payment and let the user know accordingly.
However, a few days ago, I was doing some online shopping of my own, and paid using paypal. I noticed that when I paid, I was redirected to paypal, where I logged in and saw the paypal invoice. I clicked confirm, and I was redirected back to the sellers website, where I so a summary and was told to commit the purchase!!!
So basically, the sequence was something like this:
My shopping experience from a different sellers site:
I wanted to pay for the items,
I was redirected to paypal,
I was the invoice and confirmed the payment,
I was redirected to the sellers site,
I was was shown a confirmation of the order and was asked to commit the payment,
I committed the payment and was told that the order has been completed.
The difference, my site commits the purchase on the paypal website and I listen for a reponse from paypal using their IPN system, but this second site seems to commit the payment on the sellers actual website.
I thought, wow, that felt so much more reassuring from a user experience point of view.
How is that done?
Sounds like you're currently using Payments Standard and you want Express Checkout.
Express Checkout is very similar to Standard except that it's API based and the user gets returned to your site prior to finalizing the payment.
It consists of 3 API calls...
1) SetExpressCheckout - gets a token back from PayPal that you append to the end of a redirect URL that sends the person over to PayPal to login and review the payment.
2) GetExpressCheckoutDetails - This allows you to pull the payer details (name, phone, shipping address, etc.) back into your app from PayPal. This is an optional step.
3) DoExpressCheckoutPayament - this finalizes the payment. No money is moved until this API call happens, and it doesn't happen, of course, until the user is already back at your site and within your own app flow again.
You can still use IPN the way you are, but you could also things directly within the flow as well since you get instant responses back from the API, and you can setup your own review however you want to.
I am testing the a payment process of paypal.I am using Paypal Website Payment Pro solution.
When the PayPal transaction is complete, PayPal shows this payment successful message:
Thanks for your order
Your payment of $XXXX.XX USD is complete.
You're now going back to MYSITE.
If you are not redirected within 10 seconds, click here.
I want to skip this page and directly go to my specify page url.
I have followed this instruction as mention in paypal documentation.
1: login in paypal sandbox account
2: i went to profile tab then under Website payment settings then went to Website Payments Pro Hosted Solution and then Settings
there is a auto return option. i enable the auto return radio box and insert the return url .ans then saved it .
but the problem is that it is not auto redirecting .it is showing the same paypal payment successful page with a popup with message "continue or cancel button" if the user pree the cancel button then it will not redirect to my specify url (that i do not want)
I know may be this question is duplicated. but the reason i am asking this question because paypal do changes rapidly .
thanks in advance
If you used PAYPAL php SDK THEN You have to make a success page like"success.php" and in payment.php file you have to set success url of this file(success.php).