ecommerce_sanity_stripe
ecommerce_sanity_stripe copied to clipboard
Stripe Redirect Failed
When i click pay with stripe it show this error. TypeError: Cannot read properties of undefined (reading 'redirectToCheckout')
Here you should write data.id instead of data.url
I'm getting the same error

Here's my code:
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.

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