#ronaldblanco_02606

1 messages ยท Page 1 of 1 (latest)

rotund basinBOT
coarse fractal
amber falcon
#

How can I get the "source_transfer" attribute of a PaymentIntent by listening to the Payment.created event?

coarse fractal
#

source_transfer expects the ID of a Charge object (ch_1234), so you can listen for a payment_intent.succeded event and then check the latest_charge property on the payment intent to find the Charge that you can use

#

In earlier versions of the API there will be a charges property instead of a latest_charge property

amber falcon
#

no

#

payment.created

rotund basinBOT
coarse fractal
#

Oh apologies, I see what you are talking about.

amber falcon
#

I need to retrieve that attribute of the object
I think it is with an additional in the "expanded" options

coarse fractal
#

Is that on your platform account or the connected account that you transferred to?

amber falcon
#

yes

coarse fractal
#

You can retrieve that object with the call that I linked to but you need to make that call on the correct Stripe account

#

Apologies, I meant which account is it on?

amber falcon
#

account connect

#

my webhook listen this event "payment.created"

#

webhoo/connect

coarse fractal
#

Gotcha, so that field is telling you what the object ID is on your platform account

#

So you should be able to do a normal retrieve as your platform account to get the full object

amber falcon
#

I need el ID the transfer

coarse fractal
#

Not sure I understand, that tr_ ID is the ID of the transfer object

amber falcon
#

where do I find the coonected account Id associate to that particular webhook

light torrent
#

Hi ๐Ÿ‘‹

I"m stepping in as @coarse fractal needs to go

amber falcon
#

So that I can identify which cliente account has made that transaction

light torrent
#

That will indicate which Account generated this event

amber falcon
#

How can I know the ID of the connected account that reaches my webhook/connect

light torrent
#

It's in the event