Open a-eid opened 4 weeks ago
any idea what this issue be, judging by the lack of comments I assume this is an issue on our part. any idea where could it be ?
any idea what this issue be, judging by the lack of comments I assume this is an issue on our part. any idea where could it be ?
Maybe because you are missing the await
keyword on this line?
const { paymentIntent, error } = retrievePaymentIntent(clientSecret);
vs
const { paymentIntent, error } = await retrievePaymentIntent(clientSecret);
We are experiencing this on beta 20 which I just upgraded to. Downgrading to beta 19 makes this error go away.
We had a stable implementation in production prior to the upgrade, so I don't think it is a syntax issue in our case.
Update: This is actually because v20 changes the parameters of confirmPaymentIntent
to be an object of parameters rather than just a payment intent.
So my code was this:
await confirmPaymentIntent(paymentIntent)
And I changed to this:
await confirmPaymentIntent({ paymentIntent })
Describe the bug We're getting this error:
You must provide paymentIntent that was returned from either createPaymentIntent or retrievePaymentIntent.
, from the method collectPaymentMethod, even thou the passedpaymentIntent
is returned from theretrievePaymentIntent
method call.To Reproduce Steps to reproduce the behavior:
Expected behavior for collectPaymentMethod to accept the paymentIntent returned from
retrievePaymentIntent
Stripe Terminal React Native SDK version
^0.0.1-beta.20
Device: Iphone 15 Pro Max
OS: IOS