#Eranga

1 messages · Page 1 of 1 (latest)

weak dawnBOT
torpid magnet
#

wouldn't using the upcoming invoice API without a trial serve the same purpose?

pseudo granite
#

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?

torpid magnet
#

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

pseudo granite
#

Cool, thank you for the suggestion.

#

I have another question regarding subscriptions. Can there be a subscription with no invoice?

torpid magnet
#

can. you provide more context? Do you have any specific concern or reason why you're asking this?

pseudo granite
#

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

torpid magnet
#

sounds like the scenario i just mentioned

pseudo granite
#

Looks like so. Thanks for the answers as usual. That is all for now

#

Have a great day 🥂