adrianhajdin / ecommerce_sanity_stripe

Modern Full Stack ECommerce Application with Stripe

Home Page:https://jsmastery.pro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stripe Redirect Failed

manupranav opened this issue · comments

When i click pay with stripe it show this error. TypeError: Cannot read properties of undefined (reading 'redirectToCheckout')

Screenshot (155)

Here you should write data.id instead of data.url

I'm getting the same error

Screen Shot 2022-12-15 at 12 18 29 PM

Here's my code:
Screen Shot 2022-12-15 at 12 19 32 PM

Any thoughts?

Yea same problem here I get a 401 error message and I'm trying to figure out what is causing this.

hello im getting the same error, apparently they told me the method has been deprecated by stripe , the stripe.redirectToCheckout() is no longer working, what they told me is to use a redirect to the checkout page, im still trying to figure that one out.

Captura de pantalla 2023-01-12 a las 15 55 00

this is the answer of the staff in discord to my convo

in case you want to see the convo here is the link
https://discord.com/channels/841573134531821608/841573134531821616/1062758538725834782

Yea same problem here I get a 401 error message and I'm trying to figure out what is causing this.

I am getting the same 401 error and cannot solve it