#repark_ben
1 messages · Page 1 of 1 (latest)
What kind of payments integration are you building? Payment Intents + Elements?
we're running a react native (for web) system, which indeed uses Elements and Payment Intents on the web.
Got it. Then our coupons/promotion codes API won't work I'm afraid – they only support subscriptions/invoicing/Checkout
Is there some example or walkthrough available to build such a system ourselves or whats the best way to handle payment intents and transfers?
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
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%
Yes you'd need to handle the transfers separately as opposed to passing the transfer specific params to the Payment Intent. See: https://stripe.com/docs/connect/charges-transfers
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?
It'd be a no-op really as the PI creation would fail
so basically no paymentIntent and handle if the payment succeeded for the user side, but still create custom transfers
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
You can account for those transactions by debiting the customer balance: https://stripe.com/docs/invoicing/customer/balance
okay, thank you so much! That gave me a lot of clues on where to go next - and what to plan next
of course, np!