You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When calling collectPaymentMethod() or confirmPaymentIntent(), etc. where the return value is a promise of the type PaymentIntentResultType and an error occurs, paymentIntent property is undefined.
and you also get this error? calling retrievePaymentIntent(IntentId) then at the time of calling collectPaymentMethod({ paymentIntent: paymentIntent?.id }) this function I gating this error.
Is your feature request related to a problem? Please describe.
When calling collectPaymentMethod() or confirmPaymentIntent(), etc. where the return value is a promise of the type PaymentIntentResultType and an error occurs, paymentIntent property is undefined.
confirmPaymentIntent: (paymentIntent: PaymentIntent.Type) => Promise<import("../types").PaymentIntentResultType>;
export declare type PaymentIntentResultType = { paymentIntent: PaymentIntent.Type; error?: undefined; } | { paymentIntent?: undefined; error: StripeError; };
So if there is an error paymentIntent is not set.
It would be useful to know which state the payment intent is in after the error has occurred.
This functionality seems to be present for other approaches per the documentation
Handle Failures
The text was updated successfully, but these errors were encountered: