#MarkoBoras
1 messages · Page 1 of 1 (latest)
Hey there, you can optionally restrict promotion codes to specific products based on the underlying coupon when you create them:
https://stripe.com/docs/api/coupons/create#create_coupon-applies_to-products
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So in this way you can create coupons for specific events (products) and associated promo codes for those
NP!
I have one also Stripe related question and if you can point me in which direction should I research
sure
So this website that I am developing it will be like IT conference and events.
We want next feature:
- Admin can in admin dashboard create some event. For example Meetup1. After that admin'll go in Stripe products and create product for that meetup that user can select on website and proceed to checkout. Can I limit with Stripe how many times that product can be sold?
Not currently, no. You need to implement controls on that yourself.
You can see here for some guidance on managing that:
https://stripe.com/docs/payments/checkout/managing-limited-inventory
For limited quantities you might want to explore manual capture (though this isn't available for all payment methods):
https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout#auth-and-capture