Wrapper to connect with https://api.conekta.io.
npm install conekta
var conekta = require('conekta');
conekta.api_key = '9YxqfRnx4sMQDnRsqdYn';
conekta.locale = 'es';
conekta.Charge.create({
description: 'Stogies',
amount: 50000,
currency: 'MXN',
reference_id: '9839-wolf_pack',
card: 'tok_test_visa_4242',
details: {
email: '[email protected]'
}
}, function(err, res) {
if (err) {
console.log(err.message_to_purchaser);
return;
}
console.log(res.toObject());
});
//Charge
conekta.Charge.create(hash, callback);
conekta.Charge.where(hash, callback);
conekta.Charge.find(charge_id, callback);
conekta.Plan.create(hash, callback);
conekta.Plan.where(hash, callback);
conekta.Plan.find(plan_id, callback);
conekta.Event.where(hash, callback);
conekta.Customer.create(hash, callback);
conekta.Customer.where(hash, callback);
conekta.Customer.find(customer_id, hash, callback);
conekta.Payee.create(hash, callback);
conekta.Payee.where(hash, callback);
conekta.Payee.find(payee_id, callback);
conekta.Payout.create(hash, callback);
conekta.Payout.where(hash, callback);
conekta.Payout.find(payout_id, callback);
Please see https://www.conekta.io/docs/api for up-to-date documentation.
$ git clone https://github.com/conekta/conekta-node
$ cd conekta-node
$ npm install
$ bin/console
Welcome to Conekta node console!
Help: exit() to quit
> conekta.api_key = '9YxqfRnx4sMQDnRsqdYn';
'9YxqfRnx4sMQDnRsqdYn'
> conekta.locale = 'es';
'es'
>
$ npm test
We love pull requests, send them from your fork to branch dev into conekta/conekta-node
Developed by Conekta. Available with MIT License.
If you are a comfortable working with a range of backend languages (Java, Python, Ruby, PHP, etc) and frameworks, you have solid foundation in data structures, algorithms and software design with strong analytical and debugging skills. Send your CV, github to [email protected]