#teeluxiii

1 messages ยท Page 1 of 1 (latest)

shell salmonBOT
deep badger
#

The scenario im trying to work with is that we want all subscriptions to have a billing cycle at the 1st of the month. If the trial is active, and the customer provides us a payment method, we want to have a prorated first invoice

#

But if i add that billing_cycle_anchor param, and they dont attach a payment method, it STILL creates the invoice which I dont want as i've passed the cancel option for the trial settings

#

My question is now, how would I work around that until that issue is fixed?

cosmic sleet
#

Hello ๐Ÿ‘‹
Give me a few to look

#

The one workaround I can think of is to just void the invoice once the linked subscription trial has ended and the subscription has been deleted

deep badger
#

Yeah that was my original thought, use webhooks to know if a subscription was cancelled, look at the previous status and if trialing, delete any invoices

#

Is there any timeline or issue to follow to see progress on when the original issue is fixed?

cosmic sleet
#

Unfortunately, don't have an ETA

deep badger
#

For this case, there is no previous_attributes since its a deletion. On the subscription, is it guaranteed to have https://stripe.com/docs/api/subscriptions/object#subscription_object-ended_at equal to https://stripe.com/docs/api/subscriptions/object#subscription_object-trial_end when it ends due to an expired trial?

cosmic sleet
#

I believe it should be equal, yes

#

Haven't tested it myself though

#

would recommend running a quick test with test clocks

deep badger
#

i was using this event evt_1NfOZBKjI0M1O6BOkoKJMMtk to check that

#

yup just did that