paypal / paypal-js

Loading wrapper and TypeScript types for the PayPal JS SDK
Apache License 2.0
224 stars 75 forks source link

[BUG]: Sometimes buttons are not displayed #517

Open nam-truong-le opened 4 months ago

nam-truong-le commented 4 months ago

Is there an existing issue for this?

🐞 Describe the Bug

Sometimes paypal buttons are not displayed. I inspect the state and it looks good to me:

{
  "options": {
    "clientId": "...",
    "currency": "USD",
    "dataJsSdkLibrary": "react-paypal-js",
    "dataSdkIntegrationSource": "react-paypal-js",
    "data-react-paypal-script-id": "react-paypal-js-..."
  },
  "loadingStatus": "resolved",
  "isInitial": false,
  "isPending": false,
  "isResolved": true,
  "isRejected": false
}

😕 Current Behavior

No response

🤔 Expected Behavior

No response

🔬 Minimal Reproduction

No response

🌍 Environment

| Software         | Version(s) |
| ---------------- | ---------- |
| react-paypal-js  |            |
| Browser          |            |
| Operating System |            |

Relevant log output

No response

Code of Conduct

➕ Anything else?

No response

crypticspawn commented 3 months ago

This is also happening on my end. However, I think it has to do with eligibility. However, I don't see a way to handle this using this react component. I am handling this button.IsEligible() in javascript in a different area and my message pops up and tells the customer the issue.

wsbrunson commented 2 months ago

We have moved this repository to our paypal-js monorepo: https://github.com/paypal/paypal-js

We will be archiving this repo at the end of the day which will turn off Issues activity. If this is still an issue for you, please re-open this issue here:

Transferring this issue here: https://github.com/paypal/paypal-js/issues