#maxypoo_best-practices
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/1222953950861594655
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello, some extra information here.
For example, if a user pays with a visa we might charge 10%, amex : 20%, but if they pay via us_bank_account we might charge 5%,.
This is pretty simple to do when we are doing something like
stripe.PaymentIntent.create(
amount=...,
application_fee=calculate_fee_based_on_payment_method(...),
...,
)
But when it comes to a
stripe.checkout.Session.create(
...
)
We don't actually know what the payment_method the customer is using will be, so we can't populate the application_fee_amount ahead of time.
My question is: Is this possible, and if so, what is the recommended way to achieve this via Checkout Sessions?
Hello, unfortunately it isn't possible to update the application fee after a payment has completed. Are you using direct charges (created on the connected account) or destination charges (created on your platform account)? If you are using destination charges, you can switch to using separate charges and transfers and then simply change the amount that you send to the connected account.
Let me check with my team and get back to you on that, one sec.