paypal / paypal-js

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

[BUG]: Clicking on credit card payment has a probability of triggering PayPal's payment pop-up window #513

Open hexluxiang opened 3 months ago

hexluxiang commented 3 months ago

Is there an existing issue for this?

🐞 Describe the Bug

There are two buttons on the page, one is PayPal Pay and the other is Credit Card Pay. In some cases, clicking on Credit Card Pay will pop up a payment window with PayPal content。

😕 Current Behavior

null

🤔 Expected Behavior

Click on the credit card to pay 100% correctly and the credit card payment window will pop up

🔬 Minimal Reproduction

1. open link https://paypal.github.io/react-paypal-js/?path=/docs/example-paypalbuttons--default;
2. Find the button example inside;
3. There is a probability that when switching back and forth between PayPal and credit card payments, clicking the credit card button will pop up the PayPal payment window;

🌍 Environment

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

Relevant log output

No response

Code of Conduct

➕ Anything else?

i need help 911 911 911 ! thanks! No response

wsbrunson commented 3 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