'PayPal Popup Disappears on Checkout
I'm about to create a PayPal payment gateway for donations on my website, it goes fine with the sandbox account, but when I turn to the live mode, it does not end well. The PayPal check-out window pop and disappear immediately in a live mode before even showing anything in that window. The only thing I changed on the live mode is the post URL which I replaced "api-m.sandbox." with "api-m." behind this "paypal.com"
Solution 1:[1]
The only thing I changed on the live mode is the post URL which I replaced "api-m.sandbox." with "api-m." behind this "paypal.com"
You also need to use a live client id an secret from the developer dashboard Apps and Credentials, and the JS SDK must have the same live client id for its src when loaded.
As an aside (since this is for donations) consider the simpler donate SDK which does not use API calls, and offers a payment experience more tailored for this.
If you do stick with the main JS SDK for some reason, style: { label: "donate" } can be used in the button initialization to add that text to the button, if desired.
paypal.Buttons({
style: { label: "donate" },
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
