#jenniferjenna-paymentintent-status
1 messages · Page 1 of 1 (latest)
hey there!
what you you mean by "receive" here?
do you mean the response from await confirmCardPayment?
and what exactly is the concern here for your integration? if you can explain how it causes a problem for you perhaps i can explain in that context how to handle such a case
Hi. Yes. I mean confirmCardPayment. Since we are using credit cards only I am expecting an immediate response success/failure. If for some reason the intent were to enter into processing, I would then need to client poll or employ some other backend/webhook method to determine when when the payment has moved to succeeded or failed.
if you're using await or .then() i would expect the result to either be a payment error or the successful payment intent
Complete reference documentation for the Stripe JavaScript SDK.
Returns
stripe.confirmCardPayment will return a Promise which resolves with a result object. This object has either:result.paymentIntent: the successful PaymentIntent.
result.error: an error. Refer to the API reference for all possible errors.
Okay. Thank you that is what I thought too.