#Alberto
1 messages · Page 1 of 1 (latest)
What do you mean "canceled"? You create an authorization on the card that lasts up to 7 days, then you either capture it or cancel it in that timeframe.
the docs says "Uncaptured PaymentIntents will be canceled a set number of days after they are created (7 by default)". Is there a way of decreasing the days for instance to 5?
Ahhhh, okay. I see what you're saying. Let me dig a minute
So, there isn't a way to do that automatically on Stripe. You can set it to cancel at any point, but we don't supply a field that will auto-cancel after X days. The verbiage there is used to imply that 7 is the default, but a card issuer might have more or less (since they can release the authorization on their end). Additionally other payment method types have different numbers of days (e.g; Afterpay has 13 day holds, and in-person Terminal payments have 2 days)
Does that make sense?
Yes, it does thanks!! An other question: is it possible to automatically capture a PaymentIntent when its status is "requires_capture" after X amount of time without having to call from our side (client or server of ours) the function PaymentIntent.retrieve?
because right now the api automatically cancels the pyment intent if not collected. We would like to do the opposite: always capture the payment unless we manually cancel it.
You can set up a webhook endpoint to listen for relevant Payment Intent events and automatically check if it's possible to capture payment: https://stripe.com/docs/payments/payment-intents/verifying-status#handling-webhook-events