#naughty developer

1 messages · Page 1 of 1 (latest)

wicked prairieBOT
noble pagoda
#

Hi there!

oak kettle
#

hey i have scenario where i create a paid subscription for users

#

but i want it to be canceled immediately

#

if user does not pay

#

in the settings it retries

#

on a custom schedule

#

3 5 and 7 days

#

it means it will still be active after 15 days

#

i wanna cancel immediately

#

what can be done in regards to that

#

@noble pagoda

noble pagoda
#

You can disable retries in this case I guess.

#

Another option is to listen to the webhook event invoice.payment_failed , and then cancel the subscription.

oak kettle
#

oh thanks

jagged sparrow
#

👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

oak kettle
#

i have another question

#

suppose i create a subscription on trial

#

and when i want to pay i update that subscription

#

but it creates proration

#

should i set proration_behaviour to none

#

so it does not take into account the proration amout of trial

#

because it was never paid

jagged sparrow
#

what are you expecting as a behavior?

oak kettle
#

sub_1MUr6UIfyyzwPELM5MfqivcU

#

i created this subscription

#

and amount 2988 was set it

jagged sparrow
#

ok what were you expecting instead?

oak kettle
#

it was currently on trial i added no payment method to it

#

but i updated the subscription to some other price

#

the amount 2988 was prorated

#

but it should not be included

jagged sparrow
#

I don't really follow