#Mallain23-invoices

1 messages · Page 1 of 1 (latest)

silver vale
#

Hello! Give me a couple minutes and I can help

#

Typically, when previewing Invoices we generally recommend using the Upcoming Invoices API, but as you mentioned already - you'll need to finalize the Invoice to be able to get a PI to use with the Payment Element.

#

For the customer credit being auto-applied, if you're on a later API version (after https://stripe.com/docs/upgrades#2019-12-03) then once you void the invoice the customer balance should be returned to the customer.

silver vale
#

@serene pasture Does that help?

serene pasture
#

I think so, thanks

#

Is there a reason the stripe element can't finalize the invoice?

silver vale
#

Well, we need the Invoice to be finalized ahead of time to even be able to mount/use the Payment Element. Other elements (like the Card Element) don't need the payment intent client secret until you confirm, so you could delay finalization - but then you don't get the benefit of having a single element that can handle a lot of different payment method types