#rico_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/1341410880897810555
đ 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.
- rico_code, 1 day ago, 25 messages
i think its because it is set as payout for my bank or something
wait i will send it
for example this would be one: req_DwGbJBz4suMFxh
Did you read the doc?
yeah
i mean
i think i get it
but the thing is, currently i handle it like this: First all the payments of all the users are collected and the money is being split and send to the providers
I think when i use this attribute, i have to do for every user for each provider the user uses a transaction and then use this transaction to cover the transfer to the provider
I guess I don't have the full context on your integration
Can you explain a little more? Not sure I understand what you mean
okay i will give u the steps
first all the bookings are collected
then for every user in the bookings a big PaymentIndent is created
after that for every provider in the bookings a payout is send (Transfer)
with source transaction, i think, i would have to create a transaction for every booking
So you'd just need to create transfers for each payment intent separately to use above flow
With source_transaction
okay
the thing is per payment intent i have multiple providers to reduce the fee costs
Yeah you can create multiple transfers per payment intent though with source_transaction
So you can transfer a portion to each provider
You'd just need to replicate this process for each individual payment intent
Not really an easier solution but there is an alternative solution
You'd need to switch your account to manual payouts and then wait for enough available balance in your account before making the transfers
Which is probably going to get more complicated honestly
I would stick to the source_transaction approach
i am getting this error: Request req_DG3cijyJO0dIzH: No such charge: 'pi_3Qts1nG9cv0SKMc51qYAeJCT'
Ah you need to pass the ch_ id not the pi_ id
So you can get that from payment_intent.latest_charge: https://docs.stripe.com/api/payment_intents/object#payment_intent_object-latest_charge