#redpanda

1 messages · Page 1 of 1 (latest)

ashen urchin
tacit junco
#

Oh, yes I do

ashen urchin
#

sorry @tacit junco, i don't really understand what you meant by yes i do

tacit junco
#

Sorry, I meant to answer to: are you referring to the invoice status but overread the or part

#

So it's safe to change things on the subscription while the invoice is in draft state?

#

e.g. changing cancel_at_period_end / default_payment_method

ashen urchin
#

those are fine and yes, it's fine to update while the invoice is in draft state

tacit junco
#

Ok one more question I asked above: Does the draft state on the invoice exist when a subscription is renewed?

#

Or is it just after a trial period for that 1 hour

ashen urchin
#
When subscriptions renew, Stripe:

1. Creates an invoice.
2. Leaves the invoice in a draft state for about an hour.
3. Attempts to finalize and pay the invoice.
4. Changes the invoice status to paid if payment succeeds.
tacit junco
#

Okay so if I set cancel_at_period_end during draft state for example it would apply to the renewed subscription's period end?

ashen urchin
#

yes, that's right!

tacit junco
#

Just trying to understand the edge-case where a user would change this during this 1-hour period and then complain with "I pressed cancel and I still got renewed"

#

If that makes sense

ashen urchin
#

@tacit junco let me test this out and get back to you

tacit junco
#

It's probably fine since current_period_end also updates in draft state