#jeingo
1 messages ยท Page 1 of 1 (latest)
Hello ๐
PaymentIntents API doesn't support line items
Line items are only supported by Checkout, Payment Links, Invoicing API
Thanks for the reply. And in this case, how can I implement payment with an already saved card? Maybe there is some best practice? Via Invoicing?
Yes, you could create a one-off invoice using invoicing APIs where for line items, you'd create invoice items
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thanks a lot for the answers