500 "Too few arguments to function" when processing with discount on Stripe credit card

What version of Invoice Ninja are you running? ie v4.5.25 / v5.0.30
v5.3.29-C62
What environment are you running?
Shared Hosting
Have you checked log files (storage/logs/) Please provide redacted output
[2021-12-02 16:04:41] production.ERROR: Too few arguments to function App\Models\CompanyGateway::getFeesAndLimits(), 0 passed in /home/my_username/public_html/my_domain.com/app/Services/Invoice/AddGatewayFee.php on line 108 and exactly 1 expected {“userId”:10,“exception”:"[object] (ArgumentCountError(code: 0): Too few arguments to function App\Models\CompanyGateway::getFeesAndLimits(), 0 passed in /home/my_username/public_html/my_domain.com/app/Services/Invoice/AddGatewayFee.php on line 108 and exactly 1 expected at /home/my_username/public_html/my_domain.com/app/Models/CompanyGateway.php:265)
[stacktrace]
Describe the bug
I get a 500 Error when I try (or my clients try) to process a payment and a -4% fee discount is set for Stripe credit card gateway.
Steps To Reproduce
Add a -4% fee on Stripe credit card gateway. Try to make a payment with a credit card using Stripe gateway.
Expected behavior
Process the payment.
Additional context
If I delete the Stripe fee, the credit card is processed correctly.

Hi,

@david any thoughts?

Thanks for reporting this, i’ve checked in a fix.