#m10n-Coupon

1 messages · Page 1 of 1 (latest)

upper carbon
#

Coupon can be used for one-off payment

#

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.

errant terrace
#

@brazen obsidian unarchived, lets talk here

#

let me paste your recent question

#

are you integrating on iOS only?

brazen obsidian
#

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.

brazen obsidian
#

@errant terraceany suggestions?

errant terrace
#

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

brazen obsidian
#

so in this case:

  1. User X sends user Y referral code
  2. User Y signs up. We create a coupon for user Y.
  3. On checkout, we see user Y's available coupons, subtract total - coupon amount
  4. Tada!
#

@errant terrace is that correct?

errant terrace
#

yes, the Stripe specific part here would be "create PaymentIntent with amount: xyz" and the rest would be managed on your side

brazen obsidian
#

ok! any plans to release such a feature to make this easier for those using ios

errant terrace
#

there are plans down the line yes, no timeline though
I'll be stepping away but a colleague is joining