ccavenue-iframe
v1.0.3
Published
"CCavenue Payment Gatewway(iframe)"
Downloads
6
Readme
About
- This Package integrate ccavenue payment gateway (iframe)
var ccavenue = require('ccavenue-iframe')
ccavenue.merchantId('****'); // Add Merchant Id Provided by CCAVENUE
ccavenue.workingKey('****'); // Add Working Key Id Provided by CCAVENUE
ccavenue.accessCode('****'); // Add Access Code Provided by CCAVENUE
ccavenue.redirectUrl('http://example/redirecturl'); // Add Your Redirect Url
// Mandatory Data
var data= {
order_id: 'oid',
currency: 'AED',
amount: '1.00',
language: 'EN',
billing_name: 'Rohit',
billing_address: 'Bangalore',
billing_city: 'Bangalore',
billing_state: 'Karnataka',
billing_zip: '333333',
billing_country: 'India',
billing_tel: '1234567890',
billing_email: '[email protected]',
integration_type: 'iframe_normal' // Do not Change this Value
}
// We can send optional parameters and data by appending them to "data" variable
app.get('/admin/payment',function(req,res){
// For Payment
ccavenue.makePayment(data,req,res);
});
// Redirect Url
app.post('/respHandler', function (request, response){
// To GET Response
ccavenue.getresponse(request, response,function(success){
console.log(success);
});
});