#ven-declines

1 messages · Page 1 of 1 (latest)

wet crater
#

@ember tiger you can't really 100% technically gurantee it will succeed. Confirming the PaymentIntent just attempts to charge the card. The payment might decline for many different reasons, or it might not. For example maybe the customer added funds to their bank account, but there's a decline for a different reason like the bank is having an outage at that moment, or the customer's card was reported stolen, or all sorts of things.
It's just attempting a payment and robustly handing the outcome of the attempt!

tiny raft
#

For sure, this makes sense.

#

So at least for the happy path, it seems like nothing needs to change regarding the call signature?

#

@wet crater

#

I.e. Stripe won't return a cached response

wet crater
#

well to retry you call the confirm endpoint and pass payment_method set to the ID of a PaymentMethod object that you're attempting to charge

#

no we won't return a cached response unless you're doing something with an idempotency key

tiny raft
#

Okay, got it. It seems like we are doing the right thing by not changing the payment method