#uh oh
1 messages · Page 1 of 1 (latest)
Is there any documentation on that?
The flow that I am currently trying to fix:
- Today, the user buys a product that will be sent out in the future (+7 days, let's say 10 days from today).
- There is a payment intent created for that today.
- Unfortunately, by the time the product is sent out (10 days from now), the payment intent is expired.
Are you creating a Customer and using setup_future_usage on your PaymentIntent?
https://stripe.com/docs/payments/save-during-payment is basically the flow you want
But you also add capture_method: manual
No, the customer is existing already
That's fine
Mostly you need to ensure the PaymentMethod is attached to the Customer
So that you can charge it again if the Auth expires
I can't find that on the page you sent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I'm looking at the types of webhooks and it does not seem to have payment_intent.<auth_expired> or something like that
is there a webhook for a payment intent where the auth expired?
The PaymentIntent status moves to canceled in this case so the payment_intent.canceled event will fire
Is there a way to know if that payment_intent.canceled is thrown because of paymentIntent.cancel or bc of authorization expiration?
Like a specific parameter that it returns?
Well there shouldn't really be another reason a PaymentIntent would move to canceled unless you are using Subscriptions or you are canceling them manually yourself