#sebastianhe
1 messages · Page 1 of 1 (latest)
Hi there!
I'm not sure I understand the question. But you can set the exact amount the customer will pay using line_items. Either by passing a price ID, or directly by setting the amount in price_data.unit_amount https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data-unit_amount
Currently we send all items as extra line_item. Example: ["Shirt A", 10€], ["Shirt B", 10€]. - But now i need to charge only 15 € (because 5€ are already payed). - So the solution is only add one line time with the Name "Ordered products" and the open amount? Then we lose this list of products.
Well it's completely up to you what to display in the Checkout Session. You could have ["Shirt A", 0€], ["Shirt B", 0€], ["Remaining amount", 15€]. Or directly ["Remaining amount", 15€]. Or something else.
k, thx.