#MarcusStripe

1 messages · Page 1 of 1 (latest)

meager scaffoldBOT
jagged osprey
#

Can you share the in_xxx ID?

fast glade
#

the invocie is still in draft actually

#

that might be related

#

what I do - create invovice, add invoice item. and I was told I dont need to send the invoice

jagged osprey
#

You need to finalize it (which will send it)

#

They can't be paid until finalised

fast glade
#

how to finalize it?

rose urchin
fast glade
#

Thanks.

#

So, basically, yet another remote call of the stripe api, right?

#

On a high level, like this:
Invoice invoice = createInvoice(stripeCustomerId);
createInvoiceItem(stripeCustomerId, stripePriceId, units, invoice);
InvoiceFinalizeInvoiceParams params = InvoiceFinalizeInvoiceParams.builder().build();
invoice.finalizeInvoice(params);
return invoice.getId();

rose urchin
#

yep that's the idea