Discussions

Ask a Question

How long will it take for my account to be activated?

Usuallly how much time does it takes for an account to open and send the payment link?

request_failed

Create order : it is showing Authentication error. I mentioned correct API keys but it is showing Authentication error ,Please tell me where the issue is. $response = $client->request('POST', '<https://sandbox.cashfree.com/pg/orders'>, \[ 'body' => '{"order_id":"string","order_amount":10.15,"order_currency":"INR","customer_details":{"customer_id":"7112AAA812234","customer_email":"[[email protected]](mailto:[email protected])","customer_phone":"9908734801","customer_bank_account_number":"1518121112","customer_bank_ifsc":"CITI0000001","customer_bank_code":3333},"order_meta":{"return_url":"<https://b8af79f41056.eu.ngrok.io?order_id={order_id}&order_token={order_token}","notify_url":"https://b8af79f41056.eu.ngrok.io/webhook.php"},"order_expiry_time":"2021-07-29T00:00:00Z","order_note":"Test> order","order_tags":{"additionalProp":"string"},"order_splits":[{"vendor_id":"Vendor01","amount":"100.1"}]}', 'headers' => [ 'accept' => 'application/json', 'content-type' => 'application/json', 'x-api-version' => '2022-01-01', 'x-client-id' => '2712300f7cc5348f6ce5869ee6032172', 'x-client-secret' => 'c7ea5207f9420047d107ab180cb45d8fec2c8357', ], ]); echo $response->getBody(); { "code": "request_failed", "type": "authentication_error", "message": "authentication Failed" }

for payment link getting 404

after creating order the api returns the reponse that reposne payment link returns the 404 not found "paymentLink": "<https://payments-test.cashfree.com/order/#PPl4Gn2B586EePnLkN0O">,

do cashfree provide developer account for testing purpose

do cashfree provide developer account for testing purpose

return url not working

my order is created using payment i have done payment also in request i am passing return url but its not redirected to that return url after payment request data: code: define('CREATE_ORDER_API_URL', $create_order_api_url); $curl = curl_init(); ``` //prepare post data $data = [ 'appId' => CASHFREE_MERCHANT_APP_ID, 'secretKey' => CASHFREE_MERCHANT_SECRET_KEY, 'orderId' => '5464534', 'customerName' => 'test', 'orderAmount' => '10', 'customerPhone'=> '789878987', 'customerEmail'=>'[email protected]', 'returnUrl' => 'https://6869-124-66-172-81.ngrok-free.app/payment/payment/cashfree/test.php', 'orderNote' => ORDER_NOTE, 'mode' => CASHFREE_MODE, 'notifyUrl' =>'https://6869-124-66-172-81.ngrok-free.app/payment/payment/cashfree/test.php' ]; ksort($data); $signatureData = ""; foreach ($data as $key => $value){ $signatureData .= $key.$value; } $signature = hash_hmac('sha256', $signatureData, CASHFREE_MERCHANT_SECRET_KEY,true); $signature = base64_encode($signature); $data['signature'] = $signature; //curl params for post payment curl_setopt($curl, CURLOPT_URL, CREATE_ORDER_API_URL); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $data); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); $response = curl_exec($curl); ``` //check response and do the needful. if($response !='') { $returnValue = json_decode($response); $paymentLink = $returnValue->paymentLink; if($paymentLink != ''){ @header("Location: $paymentLink"); die; }else{ echo $response; } } ``` curl_close($curl); ``` ![](https://files.readme.io/c44b1d5-image.png) request you to guid me in the same Thanks
ANSWERED

Req parameter for order/info/status

hello , i have a cashfree endpoint <https://test.cashfree.com/api/v1/order/info/status> may i know which is the request parameter for this ? or will you please provide me the documentation for this API Thanks
ANSWERED

We need cashfree payment gateway. What's procedure I need to follow?

I need a payment gateway for my gaming app. which is just like a spinning game. We have a pvt limited company. We want to know what docs required for the payment gateway. And how much time it will take to complete all such formalities.

Aadhar Verification Queries

I have following questions: 1. What all data can we store on our servers after a successfull request? 2. What are various rules/regulations, if any, are needed to be followed while using these APIs? 3. For how long does Cashfree keep the data on their Servers? 4. If I validate an Aadhar using APIs will I be able to see the same requested data on Cashfree portal itself or is it just through APIs?
ANSWERED

I need to generate a payment link where payment should be transferred to a third party account. Which API to use for this?

I need to generate a payment link where payment should be transferred to a third party account. Which API to use for this?
ANSWERED

PAYMENT GATEWAYI NTEGRATION

I WANT TO MAKE A PAYMENT GATEWAY INTEGRATION IN MY WEBSITE