razorpay / razorpay-php

Razorpay PHP Library
MIT License
182 stars 126 forks source link

Patyment Id is not creating via API #268

Closed Arfat-Mughal closed 2 years ago

Arfat-Mughal commented 2 years ago

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

Arfat-Mughal commented 2 years ago

Once I remove /redirect at the end of URL

image

ankitdas13 commented 2 years ago

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