#Jason889
1 messages ยท Page 1 of 1 (latest)
Hi ๐ can you elaborate on what you mean by partial payment?
I mean having the possibility to pay the total amount at different stage, let's say just 30% when the customer pay in the checkout session and then charge the rest at later stage
How are you planning/hoping to collect the additional payments in the future?
by creating another checkout session with the rest to be paid or by charging in off_session
Checkout Sessions don't allow you to collect a partial payment based off of Price objects, for instance you can't tell it to charge 30% of the normal price for an existing Price object. Instead you would want to create new Price objects representing the partial price that you would like to charge. You can do this in an adhoc fashion by using line_items.price_data instead of line_items.price:
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok thanks and I need to specify the product ID with line_items.price_data.product, that's correct ?
Correct