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]: Can not set API version for /v1/payment_methods #532

Open
tranvanhieu01012002 opened this issue Oct 1, 2024 · 1 comment
Open
Labels
bug Something isn't working stale

Comments

@tranvanhieu01012002
Copy link

tranvanhieu01012002 commented Oct 1, 2024

What happened?

I am using
Embedded Form for payment follow:

const stripePromise = loadStripe(process.env.STRIPE_KEY, {
  apiVersion: process.env.STRIPE_API_VERSION,
});

const CheckoutForm2 = ({ translates, locale }) => {
  const searchParams = useSearchParams();
  const key = searchParams.get("key");

  const options = {
    clientSecret: key,
  };

  return (
    <EmbeddedCheckoutProvider stripe={stripePromise} options={options}>
      <EmbeddedCheckout />
    </EmbeddedCheckoutProvider>
  );
};

I really set API version for latest version, but there is an API still use old API version

API:/v1/payment_methods
and request body:

{
  "_stripe_version": "2020-08-27",
  ...others data
}

How can I handle this one?

Environment

"@stripe/react-stripe-js": "^2.8.0",
   "@stripe/stripe-js": "^4.5.0",

Ubuntu, chrome, Stripe test version

Reproduction

Use this document:
https://docs.stripe.com/payments/checkout/save-during-payment?payment-ui=embedded-form
No response

@tranvanhieu01012002 tranvanhieu01012002 added the bug Something isn't working label Oct 1, 2024
Copy link

stale bot commented Nov 5, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 5, 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 stale
Projects
None yet
Development

No branches or pull requests

1 participant