CompraFácil payment gateway wrapper.
A JavaScript wrapper for interacting with the CompraFácil SOAP webservices.
$ npm install --save comprafacil
var comprafacil = require('comprafacil');
var options = {
wsdl: 'http://example.com/webservice?WSDL',
onDone: function() {},
onFail: function() {}
};
compraFacil.init(options);
var options = {
username: 'foo',
password: 'bar',
dateStartStr: 'dd-MM-yyyy hh:mm:ss',
dataEndStr: 'dd-MM-yyyy hh:mm:ss',
type: 'R',
onDone: function() {},
onFail: function() {}
};
compraFacil.getInfo(client, options);
var options = {
username: 'foo',
password: 'bar',
reference: '000 000 000',
onDone: function() {},
onFail: function() {}
};
compraFacil.getInfoReference(client, options);
var options = {
username: 'foo',
password: 'bar',
amount: 1,
email: 'user@example.com',
onDone: function() {},
onFail: function() {}
};
compraFacil.getReferenceMB(client, options);
var options = {
username: 'foo',
password: 'bar',
productID: 0,
quantity: 1,
email: 'user@example.com',
onDone: function() {},
onFail: function() {}
};
compraFacil.getReferenceMB2(client, options);
var options = {
username: 'foo',
password: 'bar',
amount: 1,
email: 'user@example.com',
onDone: function() {},
onFail: function() {}
};
compraFacil.getReferencePS(client, options);
var options = {
username: 'foo',
password: 'bar',
productID: 0,
quantity: 1,
email: 'user@example.com',
onDone: function() {},
onFail: function() {}
};
compraFacil.getReferencePS2(client, options);
$ npm run test
- Bug fixing and code review
- Stable release
MIT