#lior5959
1 messages · Page 1 of 1 (latest)
- It would be no other than looping Customer and Update them with the coupon, AFAIK
- You can ensure the coupon only applies once
max_redemptions= 1 - As above!
- I don't know the number of customers that will redeem the coupon in advanced as during the period new customers will join our app
How will they be charged? Via a Checkout Session?
Yes (and we don't want to use the promotion code feature)
You can populate the Coupon Id when you create the Checkout Session, no? 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.
Correct. But I want to show the user that he already has a discount before the session.
Orakaro - So from my understanding, the basic why is to run over all our customers and apply the coupon and then by the end of the period to run again over all customers and remove the coupon.
There is no some generic configuration of set coupon for all current and new customers
I am a bit confused. You can show your customer that he already has a discount, then on the steps of creating Checkout Session, you can specify the Coupon Id there, corresponding to what you have told them
What's not working with this approach?
Before a checkout session is initiated, we show the user a pricing table in several steps in his user journey. The prices of the pricing table are affected by a discount of a coupon in case the user has one. We assume that presenting the price with a discount to the user before the checkout session will increase the chances to buy a plan
Yes sure, then after showing the pricing table, you can create a coupon and set it in the Checkout Session
Got you. Many thanks!