#austin_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/1463551310199787530
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
So the goal is to set application fee percent on the subscription but then not take an application fee for a particular invoice if the fee is over a certain threshold? Or still take an application fee, but just set it to the defined threshold?
The latter is correct. We want to set the application fee to a cap of $5 on specific payment types.
Gotcha. So there's not a great way to do this unfortunately. What you can do, though, is listen for invoice.created events. charge_automatically subscription invoices remain in a draft status for 1 hour where they're editable before they're finalized. So when you receive the invoice.created event, you can update the invoice with the lower application fee if it is above your threshold. https://docs.stripe.com/api/invoices/update#update_invoice-application_fee_amount . The caveat to this is you wouldn't be able to do this to the first subscription invoice since those finalize immediately. But subsequent invoices you can.
Is there any solution that allows us to set something once during the time of subscription creation instead of having to have a webhook that monitors all future invoices?
We have this working for one time payments that use payment intents since they have the app_fee_amount field and were hoping for a similar solution for recurring payments.
Unfortunately not, no
Got it. I appreciate the help codename_duchess! Ill pass the message along to my team and see if they have any questions.