#arggh-pi-status-transition
1 messages · Page 1 of 1 (latest)
Hey there. There's not I'm afraid, ~1 hour is the timeframe in which auto collection is attempted after the invoice is finalised
What part of this flow are you explicitly attempting to test/trigger?
Just trying to get the payment intent's status into requires_payment_method, since our app uses that. Now I have to wait an hour every time I try to simulate this flow.
Specifically with an Invoice/Subscription?
Yes.
To be clear you'll only ever get that status when:
- There's no
payment_methodon the PI - Auth fails
So are you trying to simulate an actual auto collection failure on the invoice, or just that status of a PI?
Well I'm working on resolving the real world case of a failed payment where the user needs to get on-site and add a new payment method or otherwise take action. It's just unnecessarily slow if I have to wait an hour each time I need to run the flow.
How do you bring them on-site? Have you considered using the CLI with an invoice.payment_failed event?
I'm just pretending to be the user, logged in to our service. It's manual testing and depends on actual test data, I believe triggering fake events with CLI doesn't cut it, since they don't match any data in our DB?
You can provide fixture data if you need to trigger a failure on a specific Subscription ID: https://stripe.com/docs/cli/trigger#trigger-override
Complete reference documentation for the Stripe CLI.
Using the CLI would help speed up this for you if you can figure out the correct event you need and stub the data