#John_Doe_LearningStripeCheckout - Connect Payout
1 messages · Page 1 of 1 (latest)
For example
Statement descriptor
ARTWORK BY ADMIN
Amount
$127.00 USD
$174.92 AUD
Payment exchange rate
1.00 USD
1.37729 AUD
Fee
$5.37 AUD
Net
$169.55 AUD
Status
Succeeded
I know the amount is $127
My fee is Collected fee
fee_1KPEWmPJMPTjCwtFaG7zYcEt
$36.00
So I could pay out the $127 minus the fee I receive but then I need to also minus the stripe fees. What does everyone else do. Do they make this calculation and work out the stripe fees so they know what the amount is? In the stripe docs an integer is in the example rather than a variable to a calculated payout amount
Hmmm... I'm trying to map the scenario you described to the payment flow shown here:
https://stripe.com/docs/connect/charges-transfers#collecting-fees
No wait wait wait, you were talking about Manual payouts, not transfers.
In that case the flow you are describing sounds a lot more like charges + transfers than a. manual payout situation.
Yes so in that diagram with $6.80, that's the amount to payout
So is it the standard way to make a payout by querying the transfer and find out the net amount and then input this in your manual payout API call
the net amount
I'm doing destination charges
It's much more common to use scheduled payouts and settle whatever the net is at the end of the day.
Because I want to have products delivered and once the shipping webhook says delivered I will then schedule an instant manual payout for 7 days after this event occurs. If I schedule the payout at the end of the day or at the day of the week or month I wont know if the product has been delivered.
So I mean I want to make the payout based on a shipping status event rather than the standard stripe schedules number of days
Well you can pay out up to what the available balance is. So you can query the balance on behalf of the connected account.
You can query the BalanceTransactions API if you need to get more granular
Thank I will look up the BalanceTransactions API, I would like to make sure I don't pay the entire balance if one product has met the shipping delivered event but another new one is only day old and doesn't meet the payout delivered event.
So in a marketplace scenario with vendors
a vendor might sell two products on different days, you want to pay them out for individual products can I work this out with the balance transactions?
Maybe one product is fine to payout but the other has not met a payout requirement so you don't want to pay out their entire balance
Well you can parameterize your query to the BalanceTransaction API so it's specific to a single source transaction
And then return the net amount to determine how much to payout
Ok thank you I think I will explore this balance transactions API and get this to work. Thanks for your help
Happy to help! I hope it works out for you 👍