razorpay/razorpay-php

Patyment Id is not creating via API

Arfat-Mughal opened this issue · 2 comments

Customer id created
Order_id created
Did not getting payment_id ;(

Use like this with orginal order_id and other values but still got Error
$api->payment->createPaymentJson(array('amount' => 100,'currency' => 'INR','email' => 'gaurav.kumar@example.com','contact' => '9123456789','order_id' => 'order_I6LVPRQ6upW3uh','method' => 'card','card' => array('number' => '4854980604708430','cvv' => '123','expiry_month' => '12','expiry_year' => '21','name' => 'Gaurav Kumar')));

Error =>
{ "error": { "code": "BAD_REQUEST_ERROR", "description": "The requested URL was not found on the server.", "source": "NA", "step": "NA", "reason": "NA", "metadata": {} } }
image

Once I remove /redirect at the end of URL

image

Hi @Arfat-Mughal We have tested this API and it works, but you seem to be getting the error because you do not have this feature enabled. also you can this in documentation .

Screenshot 2022-09-01 at 9 13 57 AM