#madmac4000
1 messages · Page 1 of 1 (latest)
Hello! No, application_fee_percent only allows up to two decimal places: https://stripe.com/docs/api/subscriptions/update#update_subscription-application_fee_percent
No workaround?
Yes
Nothing comes to mind, no, sorry.
Seems like a massive limitation. Am I missing something obvious?
Not that I'm aware of. It's fairly uncommon to have an application fee require more than two decimal points of precision. I can flag it as a feature request interally for you though.
With the same code and a higher amount the application fee percent is being rounded to 0.
Yes please.
I must be doing something wrong with the decimal places in the equation this can't be correct. I will review.
My only suggestion would be to approach the calculations differently and determine what the most ideal two-decimal-place value for the fee would be and use that. For example, if you have a fee that would round to zero and you don't want that, find the closest two-decimal value that would be non-zero and use that instead.
Ah I am a fool haha.
Should be:
46/4992 * 100 = 0.921474358
4992 * 0.92%
I was thinking the application_fee_percent was a decimal 0-1 not a percent 0-100
This gives the precision I need. Sorry for wasting your time 🤦♂️
Ah, okay, glad it's working for you!