I tried integrating the razor pay with laravel 5.5 the form and the submission is working fine but I have given call back URL in the webhook option . But the razorpay is not hitting the url after the form submission.
In the web.php I have defined the route like below
Route::post('payment', 'RazorpayController@payment')->name('payment');
This is the function return inside the RazorpayController.
public function payment(Request $request)
{
$myfile = fopen(public_path()."/upload/error_textmode.txt", "w");
fwrite($myfile, 'test text');
fclose($myfile);
}
I tried hitting this function using ajax post request method it worked well but could not able to figure out what is the issue with my call back url somebody please help me to solve this