#soto-promo-code

1 messages ยท Page 1 of 1 (latest)

true void
empty berry
#

Does this validate max redemptions per customer as well?, for instance if a promo code has a maximum of 45 redemptions, but the code only has 1 redemption per customer, is that implicitly validated during subscription creation process?

hazy apex
#

Hi ๐Ÿ‘‹ I'm stepping in for @true void. The Stripe API will track maximum redemptions for you

empty berry
#

even if it is per user?, because I am understanding that it is overall, only max redemptions being checked on the promo code

#

Quick explanation here:

hazy apex
#

In that case you would need to make the promo code customer specific but providing the Customer ID when creating it.

empty berry
#

yeah, that's what I though, it doesn't work because the promo code would only be valid for a user, but what I need is to avoid the user from use that promo code multiple times.

hazy apex
#

Well you can create multiple promo codes from a single Coupon object. How are your users creating their subscription? Are you using Stripe Checkout or your own integration?

#

Is the code you shared how you are currently evaluating whether to allow the Customer to apply the discount?

empty berry
#

exactly!

It is my own integration.

For instance, we create the promo code JULY22 for a coupon.

What I am validating is that a user can only use once JULY22

hazy apex
#

Yeah, in that case where you don't want to create a unique promo code for each customer, then I think your current approach makes the most sense.

#

All our other restrictions are by Product/Price (applies_to), Total Redemptions (max_redemptions) and Expiration Date (redeem_by)

empty berry
#

got it!, thank you so much for your feedback, you were my last resource to confirm my intentions here ๐Ÿ˜