#undefined-checkout-discounts
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ no, to pass a discount to a checkout session you will need to provide either the ID of a coupon or a promotion code (both from the Stripe ecosystem). Alternatively, you can define an ad-hoc price for the session if you're calculating discounts on your end, by using the line_items.price_data hash.
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.