#billy-c_code
1 messages ¡ Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- billy_terminal-expiredkey, 3 days ago, 18 messages
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question. Thank you for your patience!
âąď¸ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime! If this thread is closed and you have another question you'll need to start a new thread.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1214684347605721118
đ Have more to share? You can add more detail below, including code, screenshots, videos, etc.
Hello
Stripe does not share the payout information in the metadata. The metadata on the PaymentIntent you see here was set by the platform when it created the PaymentIntent.
Sorry I will clarify further. I have access to the PaymentIntent object, which has a payment intent ID. Using this payment intent ID, I need to somehow get the Payout object associated with this payment intent ID (if there exists one).
@summer dirge
Are you using automatic payouts or manual payouts?
I am using automatic payouts
Gotcha. I don't believe there's a way to find payout ID just from the PaymentIntent ID unfortunately.
One way I can think of is by listing all balance transactions by payout type and look at the source which should get you payout IDs
https://docs.stripe.com/api/balance_transactions/list
and then you can iterate through the IDs and retrieve charges included in the payout
https://docs.stripe.com/expand/use-cases#charges-in-payout
That's where you can compare if the charges include the payment you're looking for.