#Muttakin Islam Hasib

1 messages · Page 1 of 1 (latest)

quick stoneBOT
azure plume
crimson escarp
#

const balance = await this.stripeClient.balance.retrieve({ stripeAccount: user.stripeAccountId })
const { amount, currency } = balance.instant_available[0]

if (amount <= 0) throw new UnprocessableEntityException('No available balance to transfer')

await this.stripeClient.payouts.create(
  { amount, currency, statement_descriptor: ServerConfig.BRAND_NAME },
  { stripeAccount: user.stripeAccountId },
)

return 'Transfer successful'
#

Here how I was implemented

azure plume
#

Your check is amount <= 0, but it should be amount <= the amount you intend to transfer

#

It may be that the connected account has balance of $1, but you tried to payout $10

#

In such a case, it will still be insufficient balance

crimson escarp
#

we have available, pending, Instant with the same amount

#

is there any extra fee for an instant payout?

azure plume
#

is there any extra fee for an instant payout?
Yes

crimson escarp
#

what is the minimum fee for US

azure plume
#

This channel is for developers and technical integration questions. For pricing information, I'd recommend reaching out to Support as I don't have the necessary expertise https://support.stripe.com/contact

crimson escarp
#

so for payout i have to implement like this way ‘amount - (amount / 100) * 0.1’

azure plume
#

I'm not too sure how sufficient fund is calculated. Sharing the failed request ID will be helpful for me to double check whether the pricing has any impact to the available funds

crimson escarp
#

ok

crimson escarp
#

from which webhooks event i can get the request id?

#

@azure plume here is the request ID: req_cQ7MrLU14y42m7

azure plume
#

At the point when you made the request, the available balance is USD 0. I see that the the connected account acct_1MdMcIDEB6vXJtSP is set to payout automatically. Why do you still perform manual payout?

crimson escarp
#

I want to give the option to our customers for an instant payout

crimson escarp
#

I think my logic is not correct

#

in this code