#orangebanana_code
1 messages ¡ Page 1 of 1 (latest)
đ 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.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ 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/1311250108603699261
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
We are unfamiliar with the code. Is it using some third party plugin?
Otherwise, here is our Update Transfer API Ref: https://docs.stripe.com/api/transfers/update
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Its using stripe package
The idea is that we have description and metadata in payment intent. An amount from this payment intent is then transferred to a platform connected account.
Then the connected account needs to see the same description and metadata under his payment which related to platfrom payment intent
Yeah I see. Please check the document above
That would work but I don't have the transfer id in payment intent
It's in the Charge object, inside the PaymentIntent object https://docs.stripe.com/api/charges/object#charge_object-transfer
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You can call Retrieve PaymentIntent API, expanding latest_charge
So payment intent has only one charge?
Because previously it was like a list of charges
Yes for now only the latest
You can use this method to list all Charges for a PaymentIntent ID: https://docs.stripe.com/api/charges/list#list_charges-payment_intent
Ok. I will check these out
Listing all charges doesn't work in my case
Solved with expanding latest_charge and retriving the transfer after that
Is there a way to expand the retrieved paymentIntent latest_charge and also from latest charge expand with transfer?
So I don't have to add another retrive for transfer
When you fetch the PaymentIntent you can expand: ["latest_charge.transfer"]: https://docs.stripe.com/api/charges/object#charge_object-transfer
Happy to help.