#r-v-chandan_code
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/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.
- r-v-chandan_api, 3 days ago, 7 messages
- r-v-chandan_api, 4 days ago, 9 messages
- r-v-chandan_api, 5 days ago, 25 messages
- r-v-chandan_api, 6 days ago, 11 messages
Hi! The bank account belongs to your connected account. You will need to add the Stripe account header when creating the manual payout from your Platform account: https://docs.stripe.com/connect/manual-payouts?lang=curl#regular-payouts
ok will try this
no using api call i need to payout
which i have attached code in above question using Payout.create(params)
Sorry what do you mean by: no using api call i need to payout?
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
To make a payout request for your connected account, you will need to pass their account ID as a Stripe Account header: "Stripe-Account: {{CONNECTED_ACCOUNT_ID}}"
More details on Stripe-Account header: https://docs.stripe.com/connect/authentication#stripe-account-header
I'm not seeing the connected account's ID in your code.
i refered this doc https://docs.stripe.com/api/payouts/create here it has destination id is different
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok will try this
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
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.
Are you referring to the bank_account balance type: https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types-bank_account?