#lucas_reddy
1 messages · Page 1 of 1 (latest)
we just go live in august so
client decided to give 25% discounts to first 100 users
wihout any codes, user direct get 25% discount on payment time
How are you accepting payments? Checkout Session, Payment Element, something else?
And are these one time payments or subscriptions?
We are using Payment Element & subscription
Got it. Then when you create the first 100 subscripton, you can see the discount property: https://stripe.com/docs/api/subscriptions/create?lang=node#create_subscription-coupon
Ok sorry but didnt get how to pass discount
first you create a coupon with https://stripe.com/docs/api/coupons/create?lang=node
Then when you create the subscription you add coupon: "xxx" with the coupon ID.
Okay got it thank you so much 🙂