#qmathe
1 messages · Page 1 of 1 (latest)
What kind of Connect payments are you processing? Destination? And what details specifically do you want?
Payment Intents to send money from a customer to a connected account as destination. When listing the transfers, I pass the connected account ID as destination argument.
The details I want is the amount, currency and timestamp of the payment.
The Transfer won't reflect the full details of the payment as that will likely be a net amount (minus any application fee, etc). See below for flow of funds:
Which part of that flow are you seeking details on exactly?
Ideally I want the net amount (e.g. 8.77) received by the connected account
Hi! I'm taking over this thread.
So it's a bit tricky but that's possible to get:
On the platform: The PaymentIntent object contains a Charge object that contains a Transfer object.
From the Transfer object you can find a Charge object (on the connected account). And this Charge object contains a BalanceTransaction object which has the net amount received by the connected account.
So it's PaymentIntent > Charge > Transfer > Charge > BalanceTransaction
ok, I'm going to check the doc to see whether I understand what you outlined.
Let me know if you have any follow up questions!
I took a look and several things are unclear.
I cannot pass an account ID as destination argument to payment_intents endpoint. How can I get payment intents from the receiver side where I don't know the customer IDs?
I also cannot find the charge object in PaymentIntent object.
I cannot pass an account ID as destination argument to payment_intents endpoint.
To access objects on a Connected account , you should use the Stripe-Account header: https://stripe.com/docs/connect/authentication
I also cannot find the charge object in PaymentIntent object.
It's calledlatest_chargehttps://stripe.com/docs/api/payment_intents/object#payment_intent_object-latest_charge
Also note that you could use expand to make things simpler to retrieve: https://stripe.com/docs/expand
ok, thanks a lot
Would it be easier to receive the net amount received by a connected account on every payment through the webhook? Which event type should I listen to?
True. You would listen to payment.created on the connected account. This is the Charge object that contains a BalanceTransaction which contains the net amount.