#amer-bearat-payout-creation

1 messages · Page 1 of 1 (latest)

abstract rover
abstract rover
#

hey there, do you have a request ID I can look at?

harsh hare
#

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

abstract rover
#

The amount is in cents (for USD) so what you're sending here is 90 cents, yes

harsh hare
#

yes

abstract rover
#

why are you including the bank_account source type?

harsh hare
#

they told me cause less than $dollar i should of sent this 0090

#

ahh not sure

abstract rover
#

the balance you have is the cards balance, so you can omit that parameter

harsh hare
#

so dont include the source type

#

how about the amount format is 90 or 0090 for $.90 ?

abstract rover
#

just 90 is fine

#

its an integer of cents

harsh hare
#

yes

#

doing this in ruby (amount * 100).to_i

polar valve
harsh hare
#

$6.36 im trying to send $.90 from our strip balance to connect account @polar valve

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

harsh hare
#

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 }
)

polar valve
#

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?

harsh hare
#

let me check sorry

polar valve
#

all good, I'm just helping you debug this. You are likely misunderstanding the balance API and how it works

polar valve
#

@harsh hare any progress?

harsh hare
#

{
"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

polar valve
#

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

harsh hare
#

cool thank you let me try

polar valve
#

sure thing!

harsh hare
#

@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

polar valve
#

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

harsh hare
#

Thank you @polar valve

polar valve
#

@harsh hare are you unblocked?

harsh hare
#

its working. You were right @polar valve