#datapata-paymentintent

1 messages · Page 1 of 1 (latest)

raw harbor
#

Hi! Can you clarify your question? I'm not sure I follow.

lost ravine
#

Hi, in this thread: #dev-help message I tried to get an understanding of how to use the redirect_url in my payment flow. And got this answer:

More specifically, for modal flows the result from eg confirmPayment will include an error synchronously
For async redirect flows (eg, ideal) when coming back to your return url, the URL will include the payment intent, client secret and should include a redirect_status=failed -- you can use that failed indication and leverage the PI id/client secret to retrieve the payment from the API to validate/confirm

So if I understand you correct, there are two different flows for when doing a confirmCardPayment using the Stripe js lib? In some cases, if the user cancels or the authentication fails, the confirmCardPayment will include an error and in some cases it will include a field redirect_status that will indicate if the authentication failed? So, in my integration I need to support both of these flows?
Hence, I asked if it is possible for me to know when one or the other flow will be triggered so I my integration can handle them properly.

#

Is there a difference here in using confirmPayment and confirmCardPayment?

raw harbor
#

Is there a difference here in using confirmPayment and confirmCardPayment?
confirmPayment is when you are using the Payment Element (that accept multiple payment methods), confirmCardPayment is for the Card Element (that only accepts card payment methods).