#RafaCitec-coupon
1 messages ยท Page 1 of 1 (latest)
hello, thanks
I want to create a 6-month discount for the students of a class, and I know how to create the 6-month discount coupon, but I cannot associate that discount with an email list or a domain
yes unfortunately that's not possible
but you can instead create a promotion code and share it with your customers
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
or maybe apply the coupon or the promotion code based on a logic that you implement on your own application
we use Stripe Checkout, how we can manage in our app the emails allowed for a coupon?
this is managed by webhook, no?
how are you redirecting your clients to Checkout?
in that page you can gather the information and if they meet your requirements you could apply the coupon to the checkout session upon creation
they must have registered before with their email, and as they do not have a subscription expiration date they are redirected to that page to choose a type of subscription and then go to Stripe to pay
and I add the discount code in the Stripe Checkout?
And how do I know if the user has already used the coupon before?
and I add the discount code in the Stripe Checkout?
yes with either a coupon or a promotion code
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-discounts-coupon or 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.
And how do I know if the user has already used the coupon before?
you can create a specific coupon/promotion code by customer
and then before applying or even creating you can check if there's already one created for that customer and if it is redeemed or not
I don't understand, I want a massive process, I'm not treating client by client
unfortunately you'd have to build this yourself