#foodsafe_39500

1 messages · Page 1 of 1 (latest)

wary pelicanBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

vestal mountain
#

oh and hello 😄

bright harbor
vestal mountain
#

hello, yes i tried doing it that way, but that way was having me create a product/price. and with stripe.invoiceItems.create i didn't have to do those extra steps

bright harbor
#

Gotcha

#

So there's a few different ways you could get around the first invoice not being editable:

  • You could create the Subscription with a super brief (few seconds) trial, so that the first Invoice is the $0 one you don't care about, and then once the trial is over it'll create the full period invoice that is editable
  • You could create your Subscription using a Subscription Schedule with start_date: now. It'll immediatley create the Subscription, but the first Invoice will still be a draft so you'll be able to edit it
vestal mountain
#

mate..you are next level

#

could you point me in the direction of either one of those

bright harbor
#

Here's the API ref for trial_end (which is what I'd recommend for setting a trial on a subscription): https://stripe.com/docs/api/subscriptions/create#create_subscription-trial_end - basically you'd just set it to a few seconds after your current timestamp

#

Subscription Schedules are a bit tricky to understand, but are technically the more correct workaround to use here if you don't want to deal with that brief trial period and have the extra $0 invoice