#m10n-Coupon
1 messages · Page 1 of 1 (latest)
Coupon can be used for one-off payment
in Checkout, here: https://stripe.com/docs/payments/checkout/discounts
Let me see if we have it on PaymentIntent
You can use a discounts on either a Checkout Session or an Invoice, which has PaymentIntent inside, but can't use it directly with PaymentIntent.
@brazen obsidian unarchived, lets talk here
let me paste your recent question
are you integrating on iOS only?
yes thats correct. only on ios
we want to build a simple referral program: user X shares app with user Y. we want to give user Y $10 off.
we use iOS and Python backend.
@errant terraceany suggestions?
ok so
native iOS works with PaymentIntents only, not Checkout
and PaymentIntents don't support Coupons
so really, you'll have to manage your referral system on your end, like track which customer has which coupon and how many times redeemed etc
and on your PaymentIntent, you will just create it for the "net" amount, like $10 - discount = net
so in this case:
- User X sends user Y referral code
- User Y signs up. We create a coupon for user Y.
- On checkout, we see user Y's available coupons, subtract total - coupon amount
- Tada!
@errant terrace is that correct?
yes, the Stripe specific part here would be "create PaymentIntent with amount: xyz" and the rest would be managed on your side
ok! any plans to release such a feature to make this easier for those using ios
there are plans down the line yes, no timeline though
I'll be stepping away but a colleague is joining