#Eranga
1 messages · Page 1 of 1 (latest)
wouldn't using the upcoming invoice API without a trial serve the same purpose?
nice idea.
It would have been better if that value can be retrieved from the same request though
Do you know whether Stripe checkout page does this using the same trick you mentioned?
you can write in and mention that as a feature request. I don't know off the top of my head if Stripe Checkout does that using the upcoming invoice API
Cool, thank you for the suggestion.
I have another question regarding subscriptions. Can there be a subscription with no invoice?
can. you provide more context? Do you have any specific concern or reason why you're asking this?
there's one scenario that i know of : https://stripe.com/docs/billing/subscriptions/billing-cycle#new-subscriptions
If proration_behavior is none, the initial period up to the billing cycle anchor is free – similar to a free trial. Unlike a trial, it doesn’t generate a zero-value invoice.
Yeah, sure. We have a function which goes through all the invoices of a subscription and checks if the invoice is paid or not.
We haven't considered the fact that there can be no invoices for a subscription and now we are seeing errors that we are trying to access properties of an undefined object
I'm trying to get an example subscription
Oh, I remember the case. I was trying to create a subscription manually to a customer. I also wanted to backdate the subscription to April 1st. And I remember I set proration to none
sounds like the scenario i just mentioned