#cw
1 messages ยท Page 1 of 1 (latest)
Hi there, you can specify a customer (https://stripe.com/docs/api/promotion_codes/create?lang=ruby#create_promotion_code-customer) when creating a promo code, so that only this customer can use this promo 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.
ohh
so i can email all existing customers with a coupon code
and if a random dude finds the code
it won't work for his email?
also i'm not using prebuilt checkout, i'm using payment intent and elements
To be exact, only merchant can use coupon, for customers it's promo code
PaymentElement doesn't accept promo code I'm afraid.
OK. So you want to apply an discount on existing subscriptions am I right?
yes - and old users who were subscribed but cancelled.
so
jack@gmail.com was a user from 2017 to 2019
his email is still in stripe customer list
i want when jack to decide to come back, he has 20% off by default
if his email is still in the stripe customer list, the customer-specific coupon thing is still possible?
OK. here's my suggesion
For old customers, you can just create a coupon for 20% and apply the discount programmatically through API.
For new customers, you can also use the same coupon and apply it when creating a subscription (https://stripe.com/docs/api/subscriptions/create?lang=ruby#create_subscription-coupon) so that they can enjoy the discount upon checkout.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
thank you.