#Ronit
1 messages · Page 1 of 1 (latest)
Hi there, can you share with me the details of this error?
yes
let me share you
processPayment failed: Your card's expiration year is invalid.
so does the paymentIntent Id will expire after this error or i can retry with same paymentIntent Id?
No there's no expiration for PaymentIntent
You can pay the PaymentIntent with another paymentMethod
Where do you see the error code?
i am getting this error : Error canceling payment: collectPaymentMethod could not be canceled because the command has already been canceled or has completed. actually after getting error of card is expire i am pressing cancel payment where this error comes up
Do you have the PaymentIntent ID?
Thanks for waiting, discord is busy today
Are you trying to cancel the cancelable returned from collectPaymentMethod?
i want to retry with existing paymentIntentId for make payment with another card so can i reuse paymentIntent?
or need to create a new one and proceed with that?
Yes you can resue the paymentIntent
if i can reuse does I need to call retrieve payment Intent method for that?
I don't think that's necessary, you can just call collectPaymentMethod with the same PaymentIntent.
ohk
because, i am calling using client scret that are generated on backend so i asked about it
You can use the same client secret