#trapov

1 messages ยท Page 1 of 1 (latest)

zenith gardenBOT
lean glen
#

๐Ÿ‘‹ happy to help

terse marsh
#

hmm, let me explain what I really want: I have my customers/merchants selling goods to their clients via my platform. I want to correlate the payments that the platform creates with payouts so they could see it even on my side without the need to go to the Stripe dashboard.

lean glen
#

yes, did you check the link?

terse marsh
#

I did, I don't see where it's being correlated, sorry ๐Ÿ˜ฆ

lean glen
#

what do you mean by correlate here?

terse marsh
#

Well, I want to listen for the Payout[Changed,Created] event and obtain a payment id from them so I could correlate it on my side. By correlate I mean link two entities together

lean glen
#

to get the Payment Intents of a payout

#

you need to use the code I shared in the link above

terse marsh
#

okay, thank you

#

and from the charge object I could get paymentintents I assume

#

so I get a payout then I fetch the BalanceTransactions using my PayoutId which gives me charges included in this payout and after that I can iterate through them and obtain my paymentintent id

#

did I get this right?

lean glen
#

you can actually find the PaymentIntent Id on the Charge objevt directly

#

so you're correct

terse marsh
#

yeah, but I would still have to fetch the BalanceTransaction first

lean glen
#

but this could also be a Refund

terse marsh
#

okay, got it!

#

thank you very much!