#mina_mmp
1 messages · Page 1 of 1 (latest)
hello! can you share a bit more on what you're trying to achieve here with the onChange method?
Hi @warm jay Can you double check if is the card details completed when you call confirmPayment function?
you return this
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.
The first picture is the layout and method of filling in the card number, and the second picture is the function that will be triggered when I click the button
Is the code in the 2nd picture wrapped inside the same StripeProvider of the 1st picture ?
Not included, I defined the button elsewhere
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
Ok, I tried putting them under the same StripeProvider, but still the same result, and this phenomenon occurs on specific phones, such as Oneplus
Share me the updated code.
StripePurchase() will trigger the query method of the second picture above
Show me the full code of StripePurchase ?
I still don't see where you get or call confirmPayment()
Oh it's here, sorry I didn't copy it all
Oh it's here, sorry I didn't copy it all
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.
This is my code for this page, thank you for your patience
OK, you should get confirmPayment by using const { confirmPayment } = useConfirmPayment();