Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PayPal Express Checkout popup close immediately | react-paypal-express-checkout #52

Open
thelalitmohan opened this issue Nov 27, 2019 · 13 comments

Comments

@thelalitmohan
Copy link

Getting the AUTHENTICATION_FAILURE error to the following API
https://www.sandbox.paypal.com/v1/payment-experience/web-profiles

{"name":"AUTHENTICATION_FAILURE","debug_id":"4ce6b62baa64","message":"Authentication failed due to invalid authentication credentials or a missing Authorization header","information_link":"https://developer.paypal.com/docs/api/payment-experience/#errors","details":[]}

Can you please review and fix it

@konapaz
Copy link

konapaz commented Nov 30, 2019

I have the same issue only in the sandbox mode

{"name":"AUTHENTICATION_FAILURE","debug_id":"7105b07666045","message":"Authentication failed due to invalid authentication credentials or a missing Authorization header","information_link":"https://developer.paypal.com/docs/api/payment-experience/#errors","details":[]}

Did paypal change something for sandbox on April or June 2018 ?

Similar issues...

https://github.com/paypal/paypal-checkout-components/issues/356

https://www.paypal-community.com/t5/REST-APIs/Authentocation-error-for-client-rest-API-in-sandbox/td-p/1495921

@thelalitmohan
Copy link
Author

@konapaz, the sandbox was fine 10 days ago. production is still good.

@konapaz
Copy link

konapaz commented Nov 30, 2019

@konapaz, the sandbox was fine 10 days ago. production is still good.

@lalitmohan001 So, Paypal something changed in its API

@nathanmacfarlane
Copy link

I'm having the same issue. Any solutions?

@thelalitmohan
Copy link
Author

@nathanmacfarlane, yes PayPal made some changes into their API. I see, there is no commit to the repository from the last 1 year.

@lukey78
Copy link

lukey78 commented Dec 1, 2019

Let's find out what changes have been made, fix it through a pull request, and hope that the change in production will not happen tomorrow. Any ideas where to start?

It seems the Express Button uses this thing:

https://developer.paypal.com/docs/classic/express-checkout/in-context/enable-in-context-checkout/

And that one is deprecated since 2017.

Also, the REST API v1 which is referenced in the docs is also deprecated.
I didn't find out yet how long this stuff will be supported on production.

@lukey78
Copy link

lukey78 commented Dec 1, 2019

This seems to be the current "easy" Javascript implementation:
https://developer.paypal.com/docs/checkout/

@thelalitmohan
Copy link
Author

@lukey78, better to user javascript implementation. Package production can be down anytime like a sandbox. Please ignore this package

@aralroca
Copy link

aralroca commented Dec 4, 2019

Same issue... Any new?

@aralroca
Copy link

aralroca commented Dec 4, 2019

I found why is not working...

export default scriptLoader('https://www.paypalobjects.com/api/checkout.js')(PaypalButton);

In https://github.com/thinhvo0108/react-paypal-express-checkout/blob/master/src/index.js#L109

And then in the PayPal docs...

https://developer.paypal.com/docs/archive/checkout/how-to/customize-button/

image

@aralroca
Copy link

aralroca commented Dec 4, 2019

@masoud46
Copy link

masoud46 commented Dec 4, 2019

Same issue!

1 similar comment
@SeifESlimene
Copy link

Same issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants