#towc

1 messages ยท Page 1 of 1 (latest)

timber oliveBOT
toxic gale
devout onyx
#

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

toxic gale
#

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

devout onyx
#

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?

toxic gale
#

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

devout onyx
#

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
toxic gale
#

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

timber oliveBOT
toxic gale
#

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 the discounts param: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-discounts-coupon
devout onyx
#

alright, thank you for the help ๐Ÿ™‚ Always amazed how smooth getting support is here, you put in the work