[Plugin] Paypal Standard - Redirection to Home instead of CheckoutCompleted

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 years ago
NopCommerce Version: 4.30
Plugin Version: Paypal Standard v.1.60

Hi!

I have a problem of redirection when the payment is completed.
I use a business account on Paypal. I follow all steps correctly and I use sandbox for tests.
When I valid the checkout I'm redirected to Paypal to pay and when I click on the return to website button I'm redirected to the PDTHandler action of my website. It works correctly but the PDTHandler action proceed to a redirection to the Home of my shop instead of redirect me to the "CheckoutCompleted" action.

Any idea to resolve this?
3 years ago
I also get an error
When the payment returns it calls
https://website.com/Plugins/PaymentPayPalStandard/PDTHandler
Which results in the error

This page isn’t working
If the problem continues, contact the site owner.
HTTP ERROR 400
3 years ago
I got the same error as you before.
I think that the "AutoValidateAntiforgeryToken" on the controller isn't working correctly.
I temporarily solved this in my version by adding "[IgnoreAntiforgeryToken]" attribute of the PDTHandler action at PaymentPayPalStandardController.cs line 337.

But then I got the problem that I describe in my first message.
3 years ago
Yes same here
There is nothing being returned in the QueryString so tx is null

        [IgnoreAntiforgeryToken]
        public IActionResult PDTHandler()
        {
            var tx = _webHelper.QueryString<string>("tx");
3 years ago
Thanks. Here is a work item for this.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.