#gagan-suie_api

1 messages ¡ Page 1 of 1 (latest)

grand lagoonBOT
#

👋 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.

keen basaltBOT
#

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.

ionic mural
safe osprey
#

what about the application_fee_amount?

ionic mural
safe osprey
#

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?

ionic mural
safe osprey
#

so something like:

subscription_data: { metadata: { userId }, application_fee_percent: applicationFee, transfer_data: { destination: accountId } },

ionic mural
#

the valid value for application_fee_percent is a non-negative decimal between 0 and 100, so it's different from applicationFee

safe osprey
#

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))

ionic mural
#

application_fee_percent: 5