#0xbenzy

1 messages · Page 1 of 1 (latest)

rotund nebulaBOT
icy blade
#

hello! gimme a while to get back to you!

lavish parcel
#

Hey @icy blade thanks

icy blade
#

The timestamp and date the customer is paying (billed) for will always be the same. However, when the invoice itself is generated / paid might differ slightly depending on our queue load.

https://stripe.com/docs/billing/subscriptions/billing-cycle

If a month doesn’t have the anchor day, the subscription will be billed on the last day of the month. For example, a subscription starting on January 31 bills on February 28 (or February 29 in a leap year), then March 31, April 30, and so on.

Learn how to set the billing date for subscriptions.

lavish parcel
icy blade
#

yep, that's right

lavish parcel
#

So we essentially create subscription objects in our DB with fixed dates and check against those dates whenever a change comes in from Stripe

icy blade
#

aaah, maybe that was done before we implemented test clocks

#

testing subscriptions was a huge pain before we had test clocks

lavish parcel
#

could be

#

one more question actually

#

in the Stripe.Invoice object, can I get the planId?

#

I mean the price_ thing

icy blade
lavish parcel
#

Ah got it, thanks

#

line item