#mina_mmp

1 messages · Page 1 of 1 (latest)

keen scaffoldBOT
steel birch
#

hello! can you share a bit more on what you're trying to achieve here with the onChange method?

toxic kindle
#

Hi @warm jay Can you double check if is the card details completed when you call confirmPayment function?

warm jay
#

you return this

toxic kindle
#

OK, can you share the complete code, including how you layout the button, handle the button click event and how you obtain the confirmPayment funciton.

warm jay
toxic kindle
#

Is the code in the 2nd picture wrapped inside the same StripeProvider of the 1st picture ?

warm jay
toxic kindle
#

Ok, then that's why Stripe SDK is unable to find the card details when executing confirmPayment. You should put them inside the same StripeProvider

warm jay
toxic kindle
#

Share me the updated code.

warm jay
toxic kindle
#

Show me the full code of StripePurchase ?

toxic kindle
#

I still don't see where you get or call confirmPayment()

warm jay
#

Oh it's here, sorry I didn't copy it all

warm jay
toxic kindle
#

Can you just share with me the full code so we can save some back-and-forth? I still don't see where to you get the confirmPayment function.

warm jay
toxic kindle
#

OK, you should get confirmPayment by using const { confirmPayment } = useConfirmPayment();