#ali-osaid_api

1 messages ยท Page 1 of 1 (latest)

mental canyonBOT
#

๐Ÿ‘‹ 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.

versed ether
#

Hi, let me help you with this.

#

Are you charging and transfering funds in 2 separate steps?

civic hollow
#

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

versed ether
#

That's transfer and payout to the connected account, but I was asking about charging the customer and transfering to the connected account.

civic hollow
#

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

versed ether
#

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?

civic hollow
#

yes

versed ether
#

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

civic hollow
#

i see let me test this out and lets see thanks for help :))

versed ether
#

Happy to help.

versed ether
#

Do you have any follow up questions?

civic hollow
#

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

versed ether
#

There's 2 options:

mental canyonBOT
versed ether
civic hollow
#

still same issue i used the transfer_group with same Charge and Transfer

civic creek
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

civic hollow
#

sure

civic creek
#

what is the issue exactly

civic hollow
#

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

civic creek
civic hollow
#

yeah but it failed because the amount is still in pending balance

civic creek