#lucadaniele_api
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/1263499130530037831
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
Hi
You can either use application_fee_amount or you can use transfer_data.amount (https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-payment_intent_data-transfer_data-amount) so that your platform retains a cut
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ok thanks will look at it.
if I use payment_intent_data JSON do I have to keep the second JSON containing stripeAccount property to specify that the remaining part goes to the connected account right?
No you can remove that
If you set payment_intent_data.destination then a Transfer will automatically be created and funds will be sent to the Connected Account
Ok understood so application_fee_amount is the cut that I keep and then in destination field I put the ID of the connected account
Yep
Perfect thank you very much
np
application_fee_amount is in cents like unit_amount right?
Yes