#kmbro-invoice
1 messages ยท Page 1 of 1 (latest)
hi! application_fee_percent is only available for subscriptions. For invoices you have to use _amount.
when you click on the "application_fee_amount" link in that documentation above, it takes you to the SUBSCRIPTIONs application_fee_percent documentation
that's a mistaken link!
All I want is to apply an application fee % on an invoice, not an amount. But the documentation is inconsistent with which one will be applied on the invoice itself.
you can't, you can only apply an amount, so for a percentage you'd calculate it and pass the appropriate amount
and yes the description in typescript looks wrong too, probably a bad copy-paste
Ok thanks! Just needed to know which was right ๐
So it sounds like the variable description is wrong, so go by the variable name (e.g. if it has _amount in it, it is actually an amount, and _percentage is a %)
yes, it's just that the text description is wrong here unfortunately
well to be clear, it's meant to say "A fee in [cents|yen|....] that will be applied"
the %s is a string to be replaced with the name of a currency unit but that only happens when we use the docstring in the API reference and not in the process that builds the Typescript definitions (all comes from the same source), so it's a lack of polish unfortunately. I think your confusion is that %s can look like we're talking about percentages
ok cool. that makes sense. Though you can see how it would be confusing if that was actually meant to say "Percents" ๐