#Kosta
1 messages ยท Page 1 of 1 (latest)
Hello ๐
We cover that here ๐
https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-availability
You need to use source_transaction parameter
And how can I get it?
I receive information about the event that contains the score
and payment_intent, but source_transaction is not there.
The source_transaction parameter would be the charge ID that's linked to the PaymentIntent of the invoice.
What event are you listening to?
invoice.paid
invoice.paid event delivers an invoice object as a payload which does have a charge parameter that's expandable
https://stripe.com/docs/api/invoices/object#invoice_object-charge
When you receive the event, you'll need to retreive the invoice and expand charge to get the charge information
https://stripe.com/docs/api/expanding_objects
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.
and what parameter to specify for expand?
['expand' => ['?????']]
charge
It's clear.
Thank you.