#towc
1 messages ยท Page 1 of 1 (latest)
You'd use a Coupon/Promotion code configured to reduce the cost by 40% for a single interval: https://stripe.com/docs/payments/checkout/discounts#configure-a-coupon
thanks, is there a way to do it without coupons? We're trying to do this for referrals, where every user has a token generated for them that they can share (we store it in our backend). If a user signs up using the token, the discount should be applied for their first billing cycle.
I don't think that's a job for coupons, as we also want to affect the referrer account, but maybe I'm wrong, and we should generate a stripe coupon for each user
Hmm, that would be the recommend way to do it. Another way would be to use the Customer Credit balance, but that's reflects a specific monetary value as opposed to a % discount
you'd recommend a referral system using coupons? A coupon for each user, or in the backend we automatically apply a "REFERRAL" coupon or something?
I think that'd be the best way specifically for Checkout, yes. Alternatively you could have a separate Price object that would be reduced 40% that you'd subscribe to, but then you'd need to 'upgrade' that the the full-price Price after the initial month (development overhead)
How do you envision this working? We don't have a native referral API/product, but there are third-party ones that may help
is there any downside to generating a coupon for every user? This could be tens of thousands of coupons, which never expire. It seems a little over the top, but if it works I can't complain ๐
I do agree I want to avoid development overhead
The way I imagine the flow to go is:
- an existing user can see their referral link on their dashboard (hosted by us)
- if another user goes to that link and signs up to a paid account using the token, the referrer gets some extra credits, and the referred gets the 40% discount for the first billing cycle
is there any downside to generating a coupon for every user? This could be tens of thousands of coupons, which never expire. It seems a little over the top, but if it works I can't complain
There's no limits on the amount of Coupon objects per account, if that's your question
The way I imagine the flow to go is:
- an existing user can see their referral link on their dashboard (hosted by us)
- if another user goes to that link and signs up to a paid account using the token, the referrer gets some extra credits, and the referred gets the 40% discount for the first billing cycle
Seems reasonable, yep. You'd just initialise the Checkout Session from that referral link with thediscountsparam: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-discounts-coupon
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
alright, thank you for the help ๐ Always amazed how smooth getting support is here, you put in the work