#ali-osaid_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/1270655162016337952
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, let me help you with this.
Are you charging and transfering funds in 2 separate steps?
nope its same, i made an endpoint /payout in which i first check stripe balance and then transfer the request amout to user connect account and then use stripe.payout to drop the balance into his bank
That's transfer and payout to the connected account, but I was asking about charging the customer and transfering to the connected account.
im not transfering to user connect account i maintain the wallet local keep all the money into stripe and when withdraw i transfer that amount
i used this approach because in our application we can distributes money from one user to another so i thought its best to keep the the amount in one place stripe and when they request for withdraw transfer it to there connect account
and when they request for withdraw transfer it to there connect account
So, as I asked, you charge the customer first, and then, at a different time, you transfer it to the connected account, separately, correct?
yes
Ok. In order to transfer a pending amount to the connected account balance, you can use the transfer_group parameter: https://docs.stripe.com/connect/separate-charges-and-transfers?platform=web&ui=stripe-hosted#transfer-options
However, in any case, it can't be paid out while it's pending, regardless of whether it's on the Platform or transfered to the Connected account
i see let me test this out and lets see thanks for help :))
Happy to help.
Do you have any follow up questions?
yeah i do
when user withdraw the amount then i trasfer the money from stripe to his connect account so how can i provide charge id in that case to skip pending balance issue
There's 2 options:
- use the same
transfer_groupstring on the Charge and Transfer, or - use the Charge ID in
source_transactionon the Transfer: https://docs.stripe.com/api/transfers/object#transfer_object-source_transaction
still same issue i used the transfer_group with same Charge and Transfer
๐ taking over for my colleague. Let me catch up.
sure
what is the issue exactly
okay let me explain about our app and what is my approach so far
our app is about where a user create a task a for some money and a service provider complete the task
i maintain local wallet in db for each user when they have to topup the amount i use stripe.charge and put balance into stripe and update there wallet in db
the problem comes when the service provider complete the task i transfer money from user local wallet to service provider wallet and now he has to withdraw that amount but stripe show that balance is low because the amout is in pending now availabe which will take 7 days i need to transfer the amount into his service provider connect account from stripe but because of this i cant
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yeah but it failed because the amount is still in pending balance
what's the request ID that failed please https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.