#jeingo

1 messages ยท Page 1 of 1 (latest)

low juncoBOT
sweet coral
#

Hello ๐Ÿ‘‹
PaymentIntents API doesn't support line items

Line items are only supported by Checkout, Payment Links, Invoicing API

urban heath
sweet coral
#

instead of using send_invoice collection method, you can set it to charge_automatically

#

That way, once the invoice is finalized it will attempt to charge the payment method that you either pass in as default_payment_method
https://stripe.com/docs/api/invoices/create?lang=node#create_invoice-default_payment_method

or you set under customer.invoice_settings.default_payment_method

urban heath
#

Thanks a lot for the answers