node.js - 在 CCAvenue 中获取必需参数缺失错误

标签 node.js ccavenue

实际上我正在使用mean stack开发Web应用程序,在此应用程序中我尝试使用node_ccavenue集成ccavenue支付网关 Node 包。

下面是我的代码:

    ccavenue.setMerchant("*****");
    ccavenue.setWorkingKey("***********************");
    ccavenue.setOrderId("WHIZ0001");
    ccavenue.setRedirectUrl("http://localhost:7777/login");
    ccavenue.setOrderAmount('1000.00');

    var param = {
                  billing_cust_address: 'Chennai', 
                  billing_cust_name: 'Kalaiselvan',
                  billing_cust_country: 'India',
                  billing_cust_state: 'Tamilnadu',
                  billing_cust_city: 'Chennai',
                  billing_zip: '600056',
                  billing_cust_tel: '9003321521',
                  billing_cust_email: 'kalai131192@gmail',
                  delivery_cust_name: 'Kalaiselvan',
                  delivery_cust_country: 'India',
                  delivery_cust_state: 'Tamilnadu',
                  delivery_cust_city: 'Chennai',
                  delivery_zip: '600056',
                  delivery_cust_tel: '9003321521',
                  delivery_cust_email: 'kalai131192@gmail',
         };
         ccavenue.setOtherParams(param); //Set Customer Info 

// Server url where you want to send data to ccavenue 
router.get('/make-payment', function(req, res) {
    ccavenue.makePayment(res); // It will redirect to ccavenue payment 
});

router.post('/redirect-url', function response(req, res) {
    var data = ccavenue.paymentRedirect(req); //It will get response from ccavenue payment. 
    console.log(data);
    if(data.isCheckSumValid === true && data.AuthDesc == 'Y') {
        console.log('Success' + res);
        // Success 
        // Your code 
     } else if(data.isCheckSumValid === true && data.AuthDesc == 'N') {
            console.log('UnSuccess' + res);
        // Unuccessful 
        // Your code 
    } else if(data.isCheckSumValid === true && data.AuthDesc == 'B') {
        // Batch processing mode 
        // Your code 
    } else {
        // Illegal access 
        // Your code 
    }   
});

当我尝试这个时,我收到错误 error-image

帮我解决这个问题,我一直坚持这个问题,非常感谢您的帮助

最佳答案

根据Acewebworld

Error Code: 90, Explanation: The Encryption key you entered in WHMCS gateway module setting is not correct. Kindly note that, you will get a unique encryption key for a unique URL setup in your CCAvenue MCPG gateway settings API page (if you have more than one URL setup there).

关于node.js - 在 CCAvenue 中获取必需参数缺失错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36419191/

相关文章:

node.js - 启动服务器并测试 "server closed unexpectedly"

node.js - 是否可以在 Node 中全局替换 `require`?

node.js - npm 在 Windows 中不被识别为内部或外部命令

php - CCAvenue 与 Magento 1.6.2 集成

node.js - 如何使用服务帐户访问 GSuite 电子邮件帐户的 GMAIL API

javascript - 无法从客户端获取 JSON 数据

php - 核心 php 中的 cc 大道支付网关集成错误

php - 安全错误。在 php 中使用 ccavenue 检测到非法访问

php - CCAvenue Android 集成