0

enter image description here

I getting this error while checkout through PayPal Express checkout. I don't know what is wrong. Anyone tell me if its PayPal configuration Error or something else along with Step by Step solution.

Also When i Tried to checkout through PayPal Sandbox buyer account i am getting this all time : enter image description here

9
  • Please enable Debug Log On from Admin & check var log folder
    – Jackson
    Mar 2, 2017 at 5:42
  • I have checked that sometimes I got "authorization failed" error and then get payment declined on frontend Mar 2, 2017 at 5:47
  • U r credentials are wrong
    – Jackson
    Mar 2, 2017 at 5:53
  • But i verified it again and again through account. i am using same API signature, API username & password Mar 2, 2017 at 5:55
  • AnyOne who can provide me steps to configure so I can re-check where I am mistaken? Mar 2, 2017 at 6:00

1 Answer 1

0

Try this, this work for me.

1) Edit /vendor/magento/module-paypal/view/frontend/web/js/action/set-payment-method.js

2) change

 } else {
                serviceUrl = urlBuilder.createUrl('/carts/mine/selected-payment-method', {});
                payload = {
                    cartId: quote.getQuoteId(),
                    method: paymentData
                };
            }

To

 } else {
                serviceUrl = urlBuilder.createUrl('/carts/mine/set-payment-information', {});
                payload = {
                    cartId: quote.getQuoteId(),
                    paymentMethod: paymentData
                };
                method = 'post';
            }

flush cache , then deploy content and check.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.