#amer-bearat-payout-creation
1 messages · Page 1 of 1 (latest)
hey there, do you have a request ID I can look at?
sure
req_NYAEXZ3Fh8dUKl
@abstract rover i spoke with stripe support on chat and they told me this below is this correct?
so anything less than $1 dollar add 2 zeros in front and multiply by 100 then anything equal or greater than $1 dollar just multiply by 100
for the amount
The amount is in cents (for USD) so what you're sending here is 90 cents, yes
yes
why are you including the bank_account source type?
the balance you have is the cards balance, so you can omit that parameter
@harsh hare call https://stripe.com/docs/api/balance/balance_retrieve and look at the response. What balance do you have? In which source_type?
$6.36 im trying to send $.90 from our strip balance to connect account @polar valve
you just wrote words as a human though
the response is JSON and way more complete with a lot more specific info
do you even have a bank_account balance? Those are specific to ACH Debit payments
im sorry, we have Connected account that has balance of $6.40 and we want to do payout of $.90 to the same connected account user
@polar valve
payout = Stripe::Payout.create(
{ amount: res_transc_amt, currency: 'usd', source_type: 'bank_account' },
{ stripe_account: connected_acc }
)
I understand the question, but you are not understanding my answer right now
Please actively make the call I mentioned to look at that connected account's exact and detailed balance
Does that account have a balance related to ACH Debit payments?
let me check sorry
all good, I'm just helping you debug this. You are likely misunderstanding the balance API and how it works
@harsh hare any progress?
{
"object": "balance",
"available": [
{
"amount": 640,
"currency": "usd",
"source_types": {
"card": 640
}
}
],
"instant_available": [
{
"amount": 640,
"currency": "usd",
"source_types": {
"card": 640
}
}
],
"livemode": true,
"pending": [
{
"amount": 0,
"currency": "usd",
"source_types": {
"card": 0
}
}
]
}
@polar valve @abstract rover
see you have no balance for bank_account so it doesn't make sense to pass source_type: 'bank_account' in your code/call at all
remove that and the Payout creation will work
cool thank you let me try
sure thing!
@polar valve now we are getting this "(Status 403) The provided key 'sk_test_X2******************PN0y' does not have access to account 'acct_1JildERPfwWv6mbS' (or that account does not exist). Application access may have been revoked."
we are not using sk_test_X2 any where
you must be to get that error though
I need more explicit and specific details to help you
also you have separate accounts acting as platforms, that API key is from a different account, not the one that acct_1JildERPfwWv6mbS is connected to
Thank you @polar valve
@harsh hare are you unblocked?
its working. You were right @polar valve