#hamza8649

1 messages · Page 1 of 1 (latest)

placid plankBOT
#

Hello! We'll be with you shortly. 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.

pearl bobcat
#

Hi, let me help you with this.

hexed sable
#

i can explain my use case ok one by one for better understanding ok

hexed sable
#

i save the charge id in my data base when my payment intent is retrieved successfully its works ok when the seller request the transfer for the specific transaction because the amount in that charge id is same as the seller request so they dont exceed but issues comes when the seller request all their money in that case amount is always greate than the latest charge id so how can i do that?

pearl bobcat
#

I understood that, and suggested a solution above ☝️
This way you can add multiple charges into the same funds pool.

hexed sable
#

transfer_group will be the same for everyone or it will change for every intent?

pearl bobcat
#

I would suggest having the same for each Connected account.

hexed sable
#

ok i will try and let you know the further progress

covert glacier
#

👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

hexed sable
#

will the transfer_group indicates the main platform parent account ?

covert glacier
#

no

#

it's just a way to identify the transaction as part of a group

#

so basically if you have a multi-party payment

#

and you want to identify that all of the transfers that you are making for the different merchants are part of the same group of transfers

hexed sable
#

so basically at time of creating the intent we set the transfer group ap our own wish of string or something which uniqely identifies our platform and when creating the transfer we give the same transfer group hence prohibting the amount exceed error ?

covert glacier
#

identifying the platform isn't the goal here

hexed sable
#

i separated the logic of withdraw all amount and withdraw amount against each transaction ok like if he wants to withdraw one transaction amount my back end will handle the transfer according to the charge id which is going well now i am trying the all amount i will let you know

covert glacier
#

ok sure

hexed sable
#

when i created the payment intent i give the transfer_group as a string which is same for all the intents and when we request the withdraw all amount of money using the same transfer_group it throw error insufficient amount of balance

#

i will give you the code images for better understanding

covert glacier
#

but you also need to pass the source_transaction

#

because you don't have it in your platform's balance

#

Use test cards to validate your Stripe integration without moving real money. Test a variety of international scenarios, including successful and declined payments, card errors, disputes, and bank authentication. You can also test non-card payment methods and redirects.

#

to get it directly in your available balance

hexed sable
#

but source_transaction need the charge id which is the unique for each transaction but here we will give the access to withdraw all the money and that money is always less or equals to the platform balance so why they throw error

covert glacier
#

because the amount you just charged in the PI create method, is still not available in your balance

hexed sable
#

is the time required for coming in the platform balance ?

covert glacier
covert glacier
hexed sable
#

so basically the stripe requires time to transfer the amount coming from the buyer to platform stripe main account and when it is coming in the platform balance the error automatically resolves?

covert glacier
#

yes, and for testing purposes you can try the cards I sent you earlier

#

so you can bypass the pending balance

placid plankBOT
glad hearth
#

hi! I'm taking over this thread. let me know if you have any follow up questions.

hexed sable
#

ok sure

#

i read the documentation of the testing available balance but i dont know how can i send the funds to my stripe main account so when the connected accounts request for the withdraw they dont throw error insufficient balance?

glad hearth
#

you want to add money to your platform account in test mode?

hexed sable
#

yes

#

available balance

glad hearth
hexed sable
#

can you please tell me in testing mode we manually add a payment in the available balance hence it was working fine but when in the live mode your partner said the stripe takes time to transfer the pending balance to available balance at main stripe account so how much time is required for changing the pending balance to available balance because for that work we will display the button for the withdraw at our platform

#

because if the seller has 100 dollar balance available for the withdraw they just request for that and your system will throw error

glad hearth
#

wait, your question was about test mode. are you now asking how to add balance to your account in live mode?

hexed sable
#

forget my previous query about the error i just ask at live how much time is required for the stripe needed to transfer the pending balance to the availble balance so our project is not throwing any error

glad hearth