#georgeselkhoury
1 messages ยท Page 1 of 1 (latest)
Hi ๐
The separate charge and transfers approach should be able to handle this use case. Can you describe what about it does not work for you?
@solid brook it's an invoice
is it possible to paste an example with a create invoice by any chance?
An invoice creates a Payment Intent and a Charge, you can update the Payment Intent with the Transfer Group data and use that when making transfers
https://stripe.com/docs/api/payment_intents/update#update_payment_intent-transfer_group
would it have a payment intent if the invoice is in draft?
it looks like it's only when it is finalized: https://stripe.com/docs/api/invoices/object#invoice_object-payment_intent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Correct, But you shouldn't need to make transfers before the invoice is finalized. Can you describe why you would need to create transfers before the invoice is finalized?
The best way to explain this is how it used to work with https://stripe.com/docs/api/invoices/create#create_invoice-transfer_data. If this is an array then all would have been good. However it's not an array
I need to create an invoice and create here and there the transfers directly after the create invoice call rather than on the webhooks.
Is this possible?