ccavenue

1.0.2 • Public • Published

node-ccavenue

node-ccavenue is a ccavenue payment gateway integration for node js.

Usage

var ccavenue = require('ccavenue');
 
//required
ccavenue.setMerchant("Merchant Id");
ccavenue.setWorkingKey("Working Key");
ccavenue.setOrderId("Order Id");
ccavenue.setRedirectUrl("Redirect Url");
ccavenue.setOrderAmount("Order Amount");
 
 
You can also send customer info (Optional).
 
var param = {
  billing_cust_address: 'Bangalore', 
  billing_cust_name: 'Nitish Kumar'
};
ccavenue.setOtherParams(param); //Set Customer Info
 
 
For more detail 
https://world.ccavenue.com/downloads/CCAVenueWorldIntegrationManual.pdf
 
 
// Server url where you want to send data to ccavenue
server.get('/make-payment', function(req, res) {
  ccavenue.makePayment(res); // It will redirect to ccavenue payment
});
 
// Server url should be as redirect url (which you are passing as Redirect Url).
server.post('/redirect-url', function response(req, res) {
  var data = ccavenue.paymentRedirect(req); //It will get response from ccavenue payment.
 
  if(data.isCheckSumValid == true && data.AuthDesc == 'Y') {
      // Success
      // Your code
  } else if(data.isCheckSumValid == true && data.AuthDesc == 'N') {
      // Unuccessful
      // Your code
  } elseif(data.isCheckSumValid == true && data.AuthDesc == 'B') {
      // Batch processing mode
      // Your code
  } else {
      // Illegal access
      // Your code
  }
});
 
For more detail 
https://world.ccavenue.com/downloads/CCAVenueWorldIntegrationManual.pdf
 

CCAVenue Manual

CCAVenue World Integration Manual

Installation

$ npm install ccavenue

License

The MIT License (MIT) Copyright (c) 2015 Nitish Kumar

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Bugs

See https://github.com/nitishkumarsingh13/node-ccavenue/issues.

Dependents (0)

Package Sidebar

Install

npm i ccavenue

Weekly Downloads

78

Version

1.0.2

License

MIT

Last publish

Collaborators

  • nitishkumarsingh13