#Koki Yamaguchi

1 messages · Page 1 of 1 (latest)

coral owlBOT
nova kite
#

hello! can you share more on what's the issue you're facing?

#

I believe these are the two questions that you have?

want to use confirmPayment method implemented on stripe library, because, to our understanding, this resolves authentications (like 3D Secure) for us on frontend when it is required

want to use invoices that have information about the purchased prices (so that we can know and record the detail of the purchase easily), which we think is feasible by adding prices as invoice items to invoices.

fathom cargo
#

How can I create and confirm a payment intent for a specific existing invoice?

nova kite
fathom cargo
#

but if you don't want to use the hosted invoice page to collect payment - when the invoice is finalized, there will be a PaymentIntent generated

in this case, do I finalize the invoice via API manually?

nova kite
fathom cargo
#

I'd like to charge the customer immediately. This automatic invoice advancement doesn't happen immediately after invoice's creation, does it? But even if it does, then it seems that I can't add invoice items to the invoice because it is finalized.

But anyway, "creating invoice, adding invoice items to it, finalizing it, fetching generated payment intent, and confirming it" sounds good at the moment and I'll try it first.

astral lake
#

When the automatic advancment is enabled, the invoice will be finalised after one hour from its creation. With this, you will be able to add invoice items within the one-hour draft period before the invoice is finalised automatically.

Alternatively, you can use "creating invoice, adding invoice items to it, finalizing it, fetching generated payment intent, and confirming it" for manual finalisation.

fathom cargo
#

Thank you. I appreciate it.

astral lake
#

No problem! Happy to help 😄