#cpontes-confirmCardPayment
1 messages · Page 1 of 1 (latest)
hello
Is there any way to make use the default card in file for that customer?
no, cause PaymentMethods attached to a Customer have no concept of a "default". However, you can manually get any one of their PaymentMethods and pass it there.
Cool, thanks
one last question if possible @tiny jewel
Is it possible to set a TTL on a payment intent? As in:
if the user doesn't complete the SCA/3DS flow in X amount of time, the payment intent fails automatically
no setting a TTL isn't supported but your code could handle this on your end.
e.g. listen to payment_intent.requires_action event and then if that PaymentIntent hasn't been authenticated/succeeded in n seconds, then cancel the PaymentIntent