#qmathe

1 messages · Page 1 of 1 (latest)

mental owlBOT
buoyant ruin
#

What kind of Connect payments are you processing? Destination? And what details specifically do you want?

rotund moth
#

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.

buoyant ruin
#

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?

rotund moth
#

Ideally I want the net amount (e.g. 8.77) received by the connected account

mental owlBOT
tacit mulch
#

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

rotund moth
#

ok, I'm going to check the doc to see whether I understand what you outlined.

tacit mulch
#

Let me know if you have any follow up questions!

rotund moth
#

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.

tacit mulch
rotund moth
#

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?

tacit mulch
#

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.