#mateuszinsys_93238

1 messages · Page 1 of 1 (latest)

lethal bearBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

pulsar dragon
#

Hi, let me help you with this.

#

No, PaymentIntent requires a specific amount.

shut holly
#

Can i somehow create invoices and then connect payment intent to invoice and then finalize it?

pulsar dragon
#

When creating an Invoice a PaymentIntent is created automatically, you can use it for your needs.

shut holly
#

ok then i think I know everything, thanks

pulsar dragon
#

Happy to help.

shut holly
#

But as I am going throught the docs, there is no possibility to create invoice with invoice item. Create Invoice have no items (like in subscription), and even when updating invoice line item we need id of it.

pulsar dragon
#

You need to create an Invoice and then create Invoice Items with a reference to the Invoice ID.

shut holly
#

ok thanks

#

But still something is not ok for me, as you wrote: "When creating an Invoice a PaymentIntent is created automatically, you can use it for your needs.", based on docs this is not true because of collection_method, when set to charge_automatically uses default payment method and send_invoice will send it to the user, and we don't want to do it, we want to emped Stripe element into our website

pulsar dragon
shut holly
#

But still payment intent as you said is not created,

pulsar dragon
#

You need to finalize the Invoice.

shut holly
#

Ok thanks