#omkar_api

1 messages ¡ Page 1 of 1 (latest)

lusty craterBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1349534453797617695

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

cerulean salmon
#

Hi @earnest dragon how are you doing?

earnest dragon
#

hello! this isn't random, since you're using legacy ach debits, the balance that the funds go into are that of the bank balance. Similarly, whichever charge the transfer is created from, will take from the corresponding balance type

cerulean salmon
#

Okay another question, lets say that I have $800 in card balance and $200 in ach balance. If I do not specify the source when creating a transfer to a connected account, which balance will be used?

#

// Step 2: Create the transfer
paramsTransfer := &stripe.TransferParams{
Amount: stripe.Int64(amount), // example amount in cents
Currency: stripe.String(string(stripe.CurrencyUSD)),
Destination: stripe.String(bankAccountToCredit),
//SourceType: stripe.String("bank_account"),
}

#

This is an actual snippet from our code base where the sourceType is commmented and what we saw is it started charging the "card_balance" - how did it make that decision?

earnest dragon
#

By default, if you don't specify the source type, it will be from card balance

cerulean salmon
#

understood that is the answer I was looking for

#

What happens if the card balance is 0 and ach balance is >0

#

Will it just fail in that case?

earnest dragon
#

yes, it'll fail

#

you could test it out

cerulean salmon
#

Another Q, if I top up my Chipp platform balance from my bank, I noticed it topped by my card balance

#

Is that possible?

#

My understanding was that should go to the ach balance

earnest dragon
#

no, it's correct that topping up your platform balance goes into your card balance. The ach balance is only for legacy ach debits. If you migrate to PaymentIntents with PaymentMethods for ACH debits, those payments will also go into the card balance.

cerulean salmon
#

So ideally its best to just use the card_balance parameter going forward?

#

sorry I meant SourceType : "card"

#

And is it fair to say "ach_balance" is legacy?