#ljs-fees-app_fee

1 messages · Page 1 of 1 (latest)

ocean tree
#

what Element are you using? PaymentElement? Card Element? Checkout?

pallid bane
#

At the moment we are utilizing the Hosted Invoice Page

pallid bane
dusky plover
#

Hey @pallid bane, sorry @ocean tree had to step away. There isn't a way to dynamically assign an app fee amount. The closest thing you can do here if you are using Invoices and the Hosted Invoice Page is to ask the customer up front what payment method they would want to use and then set only that payment method as the payment_method_options for the invoice. Then you can set the app fee accordingly. However, this can have drawbacks if the customer ends up wanting to use a different payment method type.

pallid bane
#

No problem. Ok, could you point me in the right direction in regards to which module I can use in stripe to dynamically create an app fee based on method?

dusky plover
#

You really would need to build this yourself with a form that asks the customer to select their payment method ahead of time. Then you can use Stripe Elements to collect the payment method based on what they select and then set the App Fee on the PaymentIntent accordingly. There is no pre-built way with Stripe to dynamically set Application fee.

pallid bane
#

Ah ok. Very well. Thank you so much!