#repark_ben

1 messages · Page 1 of 1 (latest)

elder solarBOT
rapid bloom
#

What kind of payments integration are you building? Payment Intents + Elements?

exotic cypress
#

we're running a react native (for web) system, which indeed uses Elements and Payment Intents on the web.

rapid bloom
#

Got it. Then our coupons/promotion codes API won't work I'm afraid – they only support subscriptions/invoicing/Checkout

exotic cypress
#

Is there some example or walkthrough available to build such a system ourselves or whats the best way to handle payment intents and transfers?

rapid bloom
#

What specifically about transfers?

#

We've got no documentation or examples on building a coupon system no. You could maybe leverage a third-party for that

exotic cypress
#

Let's say I have a product from a seller, that costs € 10,-. And we would distribute -50% codes, which a user could enter.

We would then create a payment intent for 5€, which goes into the sellers connect account. But the seller needs to get € 10, so we'd have to then transfer € 5 from our platform account to the seller, and then transfer the application fee from the seller to our platform account.

That's what I mean with handle transfers etc - this sounds like something I have to build myself using transfers, am I correc?

#

So the platform pays for the missing 50%

rapid bloom
exotic cypress
#

Great, that's something I can start with!
I have one last question: since stripes minimum charge is € 0,5 (if I am correct), how would you handle any case, where a user would have to pay less than this amount?

rapid bloom
#

It'd be a no-op really as the PI creation would fail

exotic cypress
#

so basically no paymentIntent and handle if the payment succeeded for the user side, but still create custom transfers

rapid bloom
#

So you'd need some mechanism to track that payment/order outside of Stripe as it would be non-existent from our records

#

Well there'd be no payment to succeed really, so you'd just need to account for that in your payment flow

#

i.e. if the 'cart' total is less than 0.05 then skip PI creation

exotic cypress
#

okay, thank you so much! That gave me a lot of clues on where to go next - and what to plan next

rapid bloom
#

of course, np!