#mrfede-reactstripejs-beta

1 messages · Page 1 of 1 (latest)

azure muralBOT
exotic heath
#

mrfede-reactstripejs-beta

#

@split sun no beta version no but it should still just work

split sun
#

Hi @exotic heath !

#

I cant do this ```const stripe = useStripe();

const handleSubmit = async (event) => {
...

const result = await stripe.updatePaymentIntent({elements});
...

};```

#

stripe.updatePaymentIntent doesnt seem to exist

#

Im using the lastest version

exotic heath
#

how did you initialize Stripe.js? Did you do ```const stripePromise = loadStripe('pk_test_123', {
betas: ['server_side_confirmation_beta_1'],
apiVersion: '2022-11-15;server_side_confirmation_beta=v1',
});

split sun
#

I've tried that, but doesnt make a difference

#

My issue is with the useStripe hook

exotic heath
#

but that doc doesn't use useStripe() right?

split sun
#

Yes, in the part where you're collecting the information from the Element

#

Line 19

exotic heath
#

ah yeah sorry the tab switching wasn't working. So yeah looks like a bug right now sorry, I'll flag internally to get it fixed

split sun
#

Ok great, thanks!

#

Any ideas about how long it will take?

#

Just to decide whether to wait or maybe find another way to do the same thing

exotic heath
#

I can't tell you, likely a while

split sun
#

Ok got it

#

Thanks for your time

exotic heath
#

@split sun and that's not just a TS error right? You're saying that the call doesn't work even if you suppress/ignore the TS error itself?