#trapov
1 messages ยท Page 1 of 1 (latest)
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.
yes, did you check the link?
I did, I don't see where it's being correlated, sorry ๐ฆ
the only difference is that you need to pass in the StripeAccount header as shown here https://stripe.com/docs/api/connected_accounts
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
what do you mean by correlate here?
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
to get the Payment Intents of a payout
you need to use the code I shared in the link above
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?
you can actually find the PaymentIntent Id on the Charge objevt directly
so you're correct
yeah, but I would still have to fetch the BalanceTransaction first
but this could also be a Refund