#shaharyar-ilyas_api
1 messages ¡ Page 1 of 1 (latest)
đ 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/1237908796630765680
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
I'm using this api to charge payment from connected account
amount: application_fee_amount,
currency: "gbp",
source: accountId,
metadata: {
payment_source: accountId,
payment_reason: "instant-payout-fee",
description: `Collect instant payout fee from - ${accountId}`,
},
});```
Okay so the original charge was to a Connected Account? In this request: https://dashboard.stripe.com/test/logs/req_MdMMnye80s1G4b
And now you are attempting to refund that charge?
yes
The account you are attempting to return the money from does not have sufficiant funds avaliable in their Stripe balance to make that transfer
how can i add balance in my account to test this feature
Accept some test payments. It's the easiest way
I have already accept payment but still facing this error
you can check:
https://dashboard.stripe.com/test/payments/ch_3PEJuZCnTu8C4df50oMy4Sx9
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Funds do not become available instantly
You can check your available balance using the API : https://docs.stripe.com/api/balance/balance_retrieve
here is the result
"object": "balance",
"available": [
{
"amount": 26701,
"currency": "usd",
"source_types": {
"card": 26701
}
},
{
"amount": 0,
"currency": "gbp",
"source_types": {
"card": 0
}
}
],
"connect_reserved": [
{
"amount": 0,
"currency": "usd"
},
{
"amount": 3744,
"currency": "gbp"
}
],
"instant_available": [
{
"amount": 0,
"currency": "gbp",
"source_types": {
"card": 0
}
}
],
"livemode": false,
"pending": [
{
"amount": 0,
"currency": "usd",
"source_types": {
"card": 0
}
},
{
"amount": 601,
"currency": "gbp",
"source_types": {
"card": 601
}
}
]```
how can i add fund that become available instantly?
yes, i understand
how can i add fund that become available instantly?
You cannot.
EXCEPT you can do it through the dashboard using these tokens: https://docs.stripe.com/connect/testing#testing-top-ups
Okay, how long will it take for my pending balance to become available?
Which token should I use to ensure my balance will be available instantly?
Try going here: https://dashboard.stripe.com/test/balance/overview and clicking the "Add to balance" button. As for the tokens, only one of them is successful. You should use that one.