#r-v-chandan_code

1 messages ¡ Page 1 of 1 (latest)

ashen tideBOT
#

👋 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/1333670628451942452

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

tired jasper
bronze dune
#

ok will try this

#

no using api call i need to payout

#

which i have attached code in above question using Payout.create(params)

tired jasper
#

Sorry what do you mean by: no using api call i need to payout?

bronze dune
#

sorry i mean i need to create a payout using API

which i have done below

def createPayOut(){
Stripe.apiKey = grails.util.Holders.getGrailsApplication().config.mks.stripe.apiKey
PayoutCreateParams params = PayoutCreateParams.builder()
.setAmount(1100L)
.setCurrency("usd")
.setDestination('ba_1QkLDZC50Rk7rYypGI8JT2Ui')
.setMethod(PayoutCreateParams.Method.STANDARD) // Optional, can be "standard" or "instant"
.build()

    // Create the payout
    Payout payout = Payout.create(params)
}

here in destaination i kept my mearchant connected account's external account id but this is not working so

tired jasper
bronze dune
tired jasper
#

Yes, that API reference is to create a payout for your own Stripe account. But if you have a connected account, you will also need to add the Stripe-Account header with the ID for your connected account since the bank account belongs to the connected account: https://docs.stripe.com/api/connected-accounts.

bronze dune
#

ok will try this

bronze dune
#

hey hi

    TransferCreateParams params =
      TransferCreateParams.builder()
        .setAmount(2000L)
        .setCurrency("pkr")
        .setDestination("acct_1QkL6aC50Rk7rYyp")
        .build();

    Transfer transfer = Transfer.create(params);

i was transfering fund from my account to connected account

Caused by: com.stripe.exception.InvalidRequestException: You have insufficient available funds in your Stripe account. Try adding funds directly to your available balance by creating Charges using the 4000000000000077 test card. See: https://stripe.com/docs/testing#available-balance; code: balance_insufficient; request-id: req_5YL2Y721dd4Q63

this is coming i checked doc i have balance in my stripe account

tired jasper
#

Your platform's account balance is in USD and you're transferring in PKR. A platform can only transfer funds in a currency they have a balance in.

bronze dune
#

ok

#

what ACH balance means ?

tired jasper