Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Error 400 when calling API confirmSetup method #679

Open
TruongVX352 opened this issue Nov 13, 2024 · 0 comments
Open

[BUG]: Error 400 when calling API confirmSetup method #679

TruongVX352 opened this issue Nov 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@TruongVX352
Copy link

What happened?

When using confirmSetup with Express Checkout Element

const response = await stripe?.confirmSetup({
  elements,
 // `clientSecret` from the created SetupIntent
  clientSecret,
  confirmParams: {
    return_url: `${window.origin}/checkout-redirect`,
  },
});

I receive an error object

{
  "code": "parameter_unknown",
  "doc_url": "https://stripe.com/docs/error-codes/parameter-unknown",
  "message": "Received unknown parameter: payment_method_options[paypal][order_id]",
  "param": "payment_method_options[paypal][order_id]",
  "request_log_url": "https://dashboard.stripe.com/test/logs/req_ICKXw0e9kNWJ4p?t=1731471781",
  "type": "invalid_request_error"
}

Are there any ways to resolve this error?
I reviewed the payload when calling the API and found this parameter: payment_method_options[paypal][order_id]: 07F30298GS466640P.
According to Stripe documentation, it should return an object containing a payment_method for setting up future payments without immediately charging the customer.

Environment

Windows 11 - Chrome/130.0.0.0

Reproduction

No response

@TruongVX352 TruongVX352 added the bug Something isn't working label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant