#shawon3719
1 messages · Page 1 of 1 (latest)
Hi there!
hello
If you want to manually send money from your paltform to the connected account, then a transfer is the way to go.
But it seems error that stripe account doesn't have balance
I want to transfer from code end
So the code you shared above doesn't work? What's the errror you get? Can you share the request ID (req_xxx)?
Let's say I want to transfer a portion of money, like dkk 200 from this - 'pi_3M9lKXKcRB9G9nVU1AuR2x7z' payment to a connected account. So is there any method to transfer from a payment instead of a charge?
In the PaymentIntent object there is a latest_charge, and you use that to create the transfer with source_transaction https://stripe.com/docs/api/payment_intents/object#payment_intent_object-latest_charge
latest_charge seems null for the mentioned paymentIntent ID
I do see a Charge ID: ch_3M9lKXKcRB9G9nVU1I49w5xd
when I try Retrieve a PaymentIntent, I am getting this
By which method I'll get that charge ID?
That works too, by looking at charges.data[0].id
It works. Thank you. 🙂