#shaharyar-ilyas_api

1 messages ¡ Page 1 of 1 (latest)

feral saffronBOT
#

👋 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.

eternal sail
#

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}`,
      },
    });```
wooden latch
#

And now you are attempting to refund that charge?

eternal sail
#

yes

wooden latch
#

The account you are attempting to return the money from does not have sufficiant funds avaliable in their Stripe balance to make that transfer

eternal sail
#

how can i add balance in my account to test this feature

wooden latch
#

Accept some test payments. It's the easiest way

eternal sail
wooden latch
#

Funds do not become available instantly

eternal sail
#

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
        }
      }
    ]```
wooden latch
#

The charge you are attempting to refund is in GBP

#

You have no available GBP

eternal sail
eternal sail
wooden latch
#

how can i add fund that become available instantly?
You cannot.

eternal sail
eternal sail
wooden latch