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

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

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