adrianhajdin / ecommerce_sanity_stripe

Modern Full Stack ECommerce Application with Stripe
https://jsmastery.pro
2.21k stars 675 forks source link

Stripe Redirect Failed #70

Open manupranav opened 2 years ago

manupranav commented 2 years ago

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

Screenshot (155)

umituysal commented 1 year ago

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

claprincedesigns commented 1 year ago

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?

npmRunTheWorld commented 1 year ago

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

abg1995 commented 1 year ago

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

mgHariom commented 1 year ago

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