#coinbeastcrypto
1 messages · Page 1 of 1 (latest)
Hi there,
1/ I don't quite understand it, payments and payment links are two different things, can you elaborate?
2/ https://stripe.com/docs/api/balance_transactions/list#balance_transaction_list-payout you can use this API, note that this is only for auto payouts
Thanks Jack, what I'm referring to is when transactions occur into a user's payment link, gathering that list of trasnactions into the connect accounts' given payment link
OK, you need to list to checkout.session.completed event in your connect webhook endpoint, and you can get it's PaymentIntent object (https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-payment_intent), and then its latest_charge object (https://stripe.com/docs/api/payment_intents/object#payment_intent_object-latest_charge).
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
From there you can get the relevant balance transaction object from charge (https://stripe.com/docs/api/charges/object#charge_object-balance_transaction)
ok great
and is there a good way to filter these by only one desired connect express account at a time?
https://stripe.com/docs/connect/webhooks#connect-webhooks when you receive a connect webhook event, you can get the account ID from the event object.
Alternatively you can just call the list checkout sessions API (https://stripe.com/docs/api/checkout/sessions/list#list_checkout_sessions) on the connected account (through stripe_account header) to retrieve the list of checkout sessions.
By specifying a stripe_account, you are telling Stripe that you want to make an API call on behalf of a connected account. You can refer to this doc to learn more about making API request for connected account (https://stripe.com/docs/connect/authentication)