#phillipsharring_code
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1237475885649756181
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
redirectToCheckout is a deprecated function, we recommend using server-side redirect or manually redirecting to checkout page using the URL
The error here seems to suggest that the price_xxx ID you're passing to lineItems, doesn't exist on the Stripe account that the API key belongs to
ok - i'll double check the various ids
the redirectToCheckout is currently working on the production site - we're just trying to add a couple of new products
yup - that was it - i had mismatched ids from different accounts
thank you
๐ ๐
i'll check out replacing redirectToCheckout
server-side redirect or manually redirecting to checkout page using the URL
what would the URL be?
When you create a checkout session using your private API key, checkout URL is returned in the API response.
We have a guide here: https://docs.stripe.com/payments/accept-a-payment?platform=web