Magento PayPal issues - A wrong PayPal Express Checkout Token is specified - php

i have a problem in Magento 2.x website with PayPal One page payment method. Some of our customers are getting an error when trying to make a payment, the error message says:
“A wrong PayPal Express Checkout Token is specified.”
The error is presented to the customer after they were redirected to PayPal, logged in to their account and attempted to make a payment by clicking on the “Pay Now” button. Instead of being redirected back to our website’s success page, they are getting redirected back to their shopping cart with a message of “A wrong PayPal Express Checkout Token is specified.”.

Related

PayPal doesn't redirect to return URL anymore

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/

Paypal Sandbox randomly goes to Paypal Express

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.

PHP PayPal Express Checkout IPN Not Completing Sale (Pics)

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?

How do we know if payment is successful or not in Indian Ccavenue Payment gateway

i have integrated the CcAvenue payment gatewaymethod in my website along with the citrus payment gateway. There is a redirect url option in CCavenue method so whenever a user cancelled or paid the amount then it is redirecting them to the redirect url. So my client wants that whenever someone cancelled or paid the amount then on the redirecting page it will show them the status that your transaction has failed or successfull and also it will show them the details on that redirect page. In citrus payment method, they have given the option but in CCavenue, i dont know about it. IS there any kinds of code which will helps me to solve out my problem?
I am able to solve it using
if($Checksum=="true" && $AuthDesc=="Y")
// This will be shown for the successfull transaction
For more info visit the below url link:-
http://subversion.assembla.com/svn/katalog/trunk/html/scripts/modules/payment/class.ccavenue.php

Setting auto redirect in payment pro paypal (sandox) after payment

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).

Categories