#Slanfan-connect-refunds
1 messages · Page 1 of 1 (latest)
@wintry island reverse_transfer reverses proportionate to the refund amount, so instead you want to not pass it and instead do a https://stripe.com/docs/api/transfer_reversals/create separately from the refund call
I'm struggling some with how to set things up.
My platform is an event management platform and I have two types of users.
Organizers and Players
The Organizers should be able to sign up and create a connected account
When creating events, they should be able to configurate a registration fee that players will pay upon registration
When a player pay the fee, I also want to grant them the opportunity to support the platform with a donation amount.
As I have configured this today, I create a checkout session with 2 lines.
- Registration Fee
- Donation Amount
The (registration fee - fees) will be transferred to the connected account and if a refund would be issued, I want to transfer the funds back in it's full
I want to transfer the funds back in it's full
which funds, back to whom? (just asking so it's clear what we're talking to since there's two money movements here, one to the customer(player) and one to the connected account(organizer))
I’ll try explain.
I want the platform to get the transferred funds back (from connected account) in its full in addition to the customer (player) getting the registration fee back (part of the full transaction value)
But if there’s an easier way then how I’m doing it now I’m willing to change.
cool ,so it's just my original answer then
you do the refund API call, that gives the customer the partial amount for the refund(I think that's what you want to do? Not the full amount they paid)?
by default if you do reverse_transfer on that call it reverses it proportionate to the amount you refunded the customer. If you instead want to get the full amount back from the connected account, you want to not pass it and instead do a https://stripe.com/docs/api/transfer_reversals/create separately from the refund call
I think I get it. From where do I get the transfer id needed? Today I store the payment intent as part of my metadata in my end when I get the checkout.completed