#yilber

1 messages · Page 1 of 1 (latest)

heady jasperBOT
mental cove
#

Let's chat here

#

What are your doubts?

light marsh
#

I'm reading the documentation and I have questions about the line_items parameter. Should the items I send be previously created in stripe? or could they be my system's own ids? The idea is to be able to send different products and create a single payment to charge the customer.

mental cove
#

invoices API doesn't have a line_items parameter? What docs are you looking at?

light marsh
mental cove
#

That's checkout session API
Are you talking about post payment invoices with Checkout?

light marsh
#

I want to generate a payment to collect from the client, we currently use billing but we want to change to payments

mental cove
#

I see. Do you plan on re-using these line items for a different checkout? If so, I'd recommend creating products/prices on Stripe and passing the IDs to line items array

If not, you could create products/prices in-line.