#fobor10362-invoice

1 messages · Page 1 of 1 (latest)

south onyx
nimble owl
#

I can't it says I have to activate my email to do it and I don't want to I am in test mode only

#

All I want to do is create an outstanding open invoice

south onyx
#

you would need to activate / verify your email. There's no other way i'm afraid

nimble owl
#

There is a way I did it the other day

#

But of course I forgot

#

maybe it was with a test card of some kind or i just waited for the scheduled subscription to complete and i prorated it

#

If I could do it programmatically right away that would be better

south onyx
#

after which, create an invoice for that specific customer

nimble owl
#

ok i will try hold on

#

how do i reference the invoice item inside the invoice?

#

stripe.InvoiceItem.create then stripe.Invoice.create?

#

But how exactly?

south onyx
#

you don't need to reference the invoice item in the invoice. When creating an invoice, it will "pull" any pending invoice items on the customers

nimble owl
#

oh interesting

#

so that creates an invoice in draft mode not open

south onyx
nimble owl
#

it has to be a webhook"?

#

ah yes perfect that worked

#

thank you

south onyx
#

you're welcome 😃