#peter-invoice

1 messages · Page 1 of 1 (latest)

snow cipher
#

correct, that doesn't charge the invoice.

#

if you set auto_advance:true then it will automatically finalize in an hour and get charged

#

or you would call the stripe.Invoice.finalize() API

#

the docs are not great here

nova canyon
#

Aah, thanks for pointing that out! So will finalize() do it right away? I don't want to keep the customer waiting for an hour...

snow cipher
#

no, finalize doesn't charge as well

nova canyon
#

How can I go about charing right away?

snow cipher
#

you'd have to finalize, then access invoice.payment_intent

#

and then confirm that PaymentIntent

nova canyon
#

Oh, got it. So create invoice, finalize it, get the intent and confirm the intent?

snow cipher
#

yep!

alpine mist
#

Just curious to know once we generate invoice can we send email to customer regarding invoice? or is there any default setting available in stripe already to handle this after payment success?