#kmbro-app-fee
1 messages · Page 1 of 1 (latest)
Hi there! I assume you are using Subscriptions here?
As opposed to one-off invoices
I actually use both
What collection method are you using?
I allow CC and ACH
based on the type of payment method, I need to apply a different % of application fee to the payment
Are you using charge_automatically?
Yes
I initially thought I should use "invoice.finalized" but I don't know if application fee is immutable or not after an invoice is finalized
Yeah you won't be able to update the invoice if you are using charge_automatically because it will finalize immediately upon renewal.
👍 That too
Another option I considered was using the invoice created webhook -- is there a way to see what payment method will be used on an invoice?
I know I could check if it has a subscription tied to it, and check if that subscription has a default payment method or an invoice_settings.default_payment_method
but that doesn't tell me about invoices that don't have subscriptions tied to them
So yeah it depends on how you are setting defaults.
You can also set defaults at the Customer level with invoice_settings.default_payment_method
This would then be used to pay for any of the Customer's Subs or one-off invoices.
Otherwise with one-off invoices you can also set the default_payment_method for that invoice: https://stripe.com/docs/api/invoices/create#create_invoice-default_payment_method
So it mostly depends on how you are setting defaults with your integration
Ok. thanks -- I think I have my answer that I need to go through and not depend on a webhook to do this. I need to set it correctly on invoice creation/subscription creation/updates
Yeah that is what I would recommend
It doesn't really work with charge_automatically on a per-invoice basis
Ok. thanks!!