#lyncor
1 messages ยท Page 1 of 1 (latest)
Hello! We have a guide for this here: https://stripe.com/docs/payments/checkout/discounts
We have some complication in that we use Stripe Connect to pay our merchants. Our platform is a booking system that aggregates several merchants, allowing people to find appointment times more easily for a given type of service.
We take a standard % as a platform fee, and pass the rest of the payment on to the merchant.
When someone applies a coupon code, we want to accept the full 'cost' of that code and still pay the merchant the correct amount as though the coupon had not been applied.
How do I set this up?
Hm, that's a bit tricky. Let me think about that for a minute...
So are you currently setting application_fee_amount on your Checkout Sessions? https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-application_fee_amount
We're currently using application_fee_amount
So you're working with Standard connected accounts?
It looks like our merchants are set up as Express accounts
Oh, okay. So in that case you can use separate charges and transfers instead: https://stripe.com/docs/connect/separate-charges-and-transfers
In a nutshell the Checkout Session is created on your platform, you get the full amount at time of payment, then after that you make a Transfer to the connected account for whatever amount you wish. That way you can calculate exactly how much you want to Transfer after determining what happened during the payment process.
Ahhh, I was wondering if we'd end up needing to do something like that.
Yep. You would set a transfer_group on the Checkout Session: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-transfer_group
So essentially we'd need to do things a bit more manually, but we'd gain better control over the process.
Yep.
Does this approach let the customer input the coupon in Stripe's payment UI?
Yep, the customer experience does not change.
Great. On a related note, is it possible to specify a coupon for a 100% discount? So far we've only had success setting it to 99%.
It'd be really handy being able to create promotional 'freebies' and have them actually be free, instead of the customer having to pay a nominal charge.
Not at the moment, but it's something we're working on.
That's helpful to know, cheers. I guess we'll have to keep using 99% for now. Hopefully the 100% discount becomes a possibility in the near future. ๐
Let me check on something, hang on...
Okay, yeah, it's getting close. No ETA yet, but hopefully you won't have to do 99% for much longer. ๐
Sweet, looking forward to it.
Okay, so I guess from here I'll need to rework our integration to use separate charges and transfers. Then I'll be able to make the coupon apply to the platform charge, but not the transfer to the merchant.
Does that sound correct to you?
Yep, that's it in a nutshell.
Great. Thanks for your help!