#dragon.frost

1 messages · Page 1 of 1 (latest)

stuck anvilBOT
tardy bobcat
#

Hi there!

#

No, it's Stripe who will set that status automatically. Why?

cyan mesa
#

I'm on the process of migrating my old codebase to payment intent flow and my cypress tests somewhere is setting a test subscription's status to incomplete_expired. And I was curious if it can be triggered by calling any stripe APIs like cancel invoice or something like that.

tardy bobcat
#

Oh it's for testing purposes then?

#

The only way to get to that status is to create a Subscription and wait 24 hours for it to expire.

cyan mesa
#

only incomplete subscription's status can be incomplete_expired right?

tardy bobcat
cyan mesa
tardy bobcat
#

oh wow, I didn't know this.

#

Looks like your correct, I recommend to test this in test mode to make sure that's accurate.

soft swan
#

@cyan mesa what's up

cyan mesa
#

Hey @soft swan , I was curious, was there a possibility a subscription could have status incomplete_expired before the payment Intent implementation?

soft swan
#

what does "payment intent implementation" refer to in that context?

stuck anvilBOT
soft swan
#

@cyan mesa are you there?

cyan mesa
#

Sorry, I'm here

#

by " before payment intent implementation" i meant the time when stripe had no payment intent integration

soft swan
#

not sure why you ask, we are in 2023 now

#

but incomplete was added in 2018/2019 as part of the migration to PaymentIntents yes, but you can opt in to use it on any API version by passing payment_behavior:default_incomplete If you don't do that we would not create incomplete subscriptions, we would just decline if 3DS is required and the call to create the Subscription fails(which was the legacy behaviour), we don't generally just add new things or change existing behaviour without you opting in or moving to a new API version where the defaults change

#

but again I don't think it really matters unless you have a question behind the question, do you?