#kmbro-app-fee

1 messages · Page 1 of 1 (latest)

junior lynx
#

Hi there! I assume you are using Subscriptions here?

#

As opposed to one-off invoices

unborn grail
#

I actually use both

junior lynx
#

What collection method are you using?

unborn grail
#

I allow CC and ACH

#

based on the type of payment method, I need to apply a different % of application fee to the payment

junior lynx
#

Are you using charge_automatically?

unborn grail
#

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

junior lynx
#

Yeah you won't be able to update the invoice if you are using charge_automatically because it will finalize immediately upon renewal.

unborn grail
#

👍 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

junior lynx
#

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.

#

So it mostly depends on how you are setting defaults with your integration

unborn grail
#

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

junior lynx
#

Yeah that is what I would recommend

#

It doesn't really work with charge_automatically on a per-invoice basis

unborn grail
#

Ok. thanks!!