【问题标题】:Getting Required parameter missing error in CCAvenue在 CCAvenue 中获取必需的参数丢失错误
【发布时间】:2016-04-05 06:56:25
【问题描述】:

实际上我正在使用平均堆栈开发 Web 应用程序,在此应用程序中我尝试使用 node_ccavenue 节点包集成 ccavenue 支付网关。

下面是我的代码:

    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 
    }   
});

在尝试此操作时出现错误

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

【问题讨论】:

    标签: node.js ccavenue


    【解决方案1】:

    根据Acewebworld

    错误代码:90,说明:您在WHMCS中输入的加密密钥 网关模块设置不正确。请注意,您将获得 CCAvenue MCPG 中唯一 URL 设置的唯一加密密钥 网关设置 API 页面(如果您在那里设置了多个 URL)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-01-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-03-14
      • 1970-01-01
      • 2016-04-03
      • 2021-10-07
      相关资源
      最近更新 更多