I'm trying to implement the flutterwave payment gateway, most steps are successful apart from the error below which appears once payment is either cancelled or successful instead of redirecting to home route with a toast message and so on . I have screenshots attached.
ArgumentCountError
Too few arguments to function App\Http\Controllers\Frontend\Payment\FlutterwaveController::webhook(), 0 passed in C:\xampp\htdocs\minishop\vendor\laravel\framework\src\Illuminate\Routing\Controller.php on line 54 and exactly 2 expected
I'm trying to implement the flutterwave payment gateway, most steps are successful apart from the error below which appears once payment is either cancelled or successful instead of redirecting to home route with a toast message and so on . I have screenshots attached.
ArgumentCountError Too few arguments to function App\Http\Controllers\Frontend\Payment\FlutterwaveController::webhook(), 0 passed in C:\xampp\htdocs\minishop\vendor\laravel\framework\src\Illuminate\Routing\Controller.php on line 54 and exactly 2 expected
ROUTES
PAYMENT BUTTON
CONTROLLER