#billymeetssloth-promocodes
1 messages · Page 1 of 1 (latest)
hey there, sorry i missed replying to you so far, look at this now 🙂
Yep, you can pass a promo code in the discounts parameter to provide this:
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-discounts-promotion_code
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
note that its an array so you'd do:
discounts[0][promotion_code]=promo_12345