#gagan-suie_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. Thank you for your patience!
âąď¸ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime! If this thread is closed and you have another question you'll need to start a new thread.
đ 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/1212964673339793438
đ Have more to share? You can add more detail below, including code, screenshots, videos, etc.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- gagan_checkout-subscription, 1 day ago, 8 messages
You should specify it in the subscription_data , see https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-subscription_data-transfer_data
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
what about the application_fee_amount?
https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-subscription_data-transfer_data-amount_percent it's amount_percent for subscription
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ahh amount_percent is what is going to the connect account, not whats going to the platform
which is opposite of application_fee_amount
is this correct?
Yes you are right. https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-subscription_data-application_fee_percent Or you can use application_fee_percent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
so something like:
subscription_data: { metadata: { userId }, application_fee_percent: applicationFee, transfer_data: { destination: accountId } },
the valid value for application_fee_percent is a non-negative decimal between 0 and 100, so it's different from applicationFee
so if i wanted to take 5% of the price to go to the platform is this correct?
const applicationFee = Math.round(price.unit_amount * (0.05 / 100))
application_fee_percent: 5