#RG-invoicing

1 messages · Page 1 of 1 (latest)

tranquil pivot
#

Hello @slow summit! What is your question?

slow summit
tranquil pivot
#

That's normal, you cannot create an empty invoice directly.

You first need to create at least one Invoice Item
https://stripe.com/docs/api/invoiceitems/create
Then you create the invoice and it will automatically include all Invoice Items you created previously.

slow summit
#

Ohh, I see. That's great. Would it create another charge to the customer with that? Since the charge has already been done previously this shouldn't happen

tranquil pivot
#

A charge will be created when your invoice is finalized. Creating individual Invoice Item won't create a charge.

slow summit
#

Perfect, then I get the picture. Thank you kindly for the support!

slow summit
#

Hey, quick question, I just Created the code for it shows up like this:

#

Is there a way to finalize it without charging the customer?

dry umbra
#

Hi there, I'm stepping in for soma. No, there isn't. Our invoices are also part of our collection flow, so they automatically charge. What is it you're trying to accomplish by creating an invoice?

slow summit
#

We're already making the charge before, and after we'd like to save an invoice separately

#

So then it'd be a double charge if we'd create an invoice later on?

dry umbra
#

Yes it would be

#

You could leave them in a draft state to avoid them charging, but that could get confusing

slow summit
#

Ah yes. Could the invoice number be added instead of the "Draft" in that case?

#

Or could it be a solution if we'd remove the charge in the Php code above and use the invoicing instead?

Would the sepa debit charge be exactly the same because of the SourceObject that contains the Iban?

dry umbra
#

If the default_source isn't set on the invoice object, then we have fallback logic to pull it from the associated subscription (if there is one) or the customer's default source.

slow summit
#

Got it! I'll do it that way then, thanks!