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

[BUG]: Issue with Sandbox Account Payment Failure

Open k-ele opened this issue 1 year ago • 11 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues.

🐞 Describe the Bug

Hi,

I am encountering an error when trying to make a payment using a sandbox account, and the transaction fails.

I have also tried recreating a new sandbox account and retrying, but the same error occurs.

On the other hand, a one-time payment with a production account and a subscription payment with a sandbox account both work successfully.

Below is the code that fails to make the payment:

〜
const paypalScriptOptions = {
    'client-id': 'test',
    currency: 'JPY',
};
  
<PayPalScriptProvider options={paypalScriptOptions}>
    <PaypalButton />
</PayPalScriptProvider>
〜

Do you have any solutions for this issue?

😕 Current Behavior

No response

🤔 Expected Behavior

No response

🔬 Minimal Reproduction

No response

🌍 Environment

| Software         | Version(s) |
| ---------------- | ---------- |
| react-paypal-js  |  8.3.0     |
| Browser          |  Chrome and Firefox     |
| Operating System |  Mac OS          |

Relevant log output

No response

Code of Conduct

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

➕ Anything else?

No response

k-ele avatar Jun 02 '24 06:06 k-ele