#atilla.fib

1 messages ยท Page 1 of 1 (latest)

glacial trenchBOT
urban osprey
glacial trenchBOT
wooden anchor
#

docs dont help with my use case

#

you can close this unless anyone has an idea on how to simulate unpaid in test env

dull ermine
#

๐Ÿ‘‹ stepping in as Pompey needs to step away

#

As noted above it is based on failed payments, so you basically want to trigger the necessary amount of failed payments using the 4000000000000341 test card (which declines after attachment)

wooden anchor
#

can you give step by step ?

#
  1. have an active sub
  2. attach the card to the subscription
  3. reset billing to now? but this will get into overdue status
#

if i reset billing anchor to now while unpaid, will it work same as overdue?

#

overdue will just get new invoice and attempt charge

dull ermine
wooden anchor
#

hmm, give me half hour to test this and will be back with an update

wooden anchor
#

tried by best but could not make it unpaid

#

are there some docs on this?

dull ermine
#

Can you share a test Subscription ID?

#

No there are no specific docs

wooden anchor
#

sub_1OFCtYJVbFQb3xmWTpNSWUY2

#

if you can make this unpaid you are the best ๐Ÿ˜„

dull ermine
#

While I look, why do you want this anyway?

#

Like if it is just for testing then you should just mock the status response...

wooden anchor
#

i have an endpoit for customers to retry the payment

#

i want to test it for unpaid sub

#

for overude its working

#

stripe.Subscription.modify(
sub.get("id"),
payment_behavior="error_if_incomplete",
off_session=True,
proration_behavior="none",
billing_cycle_anchor="now",
)

#

this is what i do for overdue

#

so i want to reset the billing start date and try to charge again also for unpaid

#

will it work? i want to test it

dull ermine
#

If you want a Subscription to move to unpaid then you have to change the If all retries for a payment fail,
setting

#

Otherwise your Subs will never be "unpaid", they will just cancel

wooden anchor
#

ok now i understand

#

in prod we have unpaid so the account from test had diff settings

dull ermine
#

Gotcha

wooden anchor
#

huge thanks

#

from here its easy