react-paypal-js icon indicating copy to clipboard operation
react-paypal-js copied to clipboard

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

Open hexluxiang opened this issue 1 year ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues.

🐞 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

  • [X] I agree to follow this project's Code of Conduct

➕ Anything else?

i need help 911 911 911 ! thanks! No response

hexluxiang avatar May 15 '24 12:05 hexluxiang