Facing issues in integrating payment gateway in php Laravel

I am a novice in php and am facing a issue while integrating Razor Pay in my website.

It gives me this array when asked for payment gateway page. This array is probably from the dd($input)

array:2 [▼ // Modules/Gateways/Http/Controllers/RazorPayController.php:77
  "_token" => "A String with random data"
  "payment_id" => "A String with random data"
]

In the url, if I change /payments? with /pay?, it starts working.