Conekta.JS 1.0.1
Conekta.js allows you to create a token with credit/debit card details in your web apps, by preventing sensitive card data from crossing your server (More information, read PCI compliance).
Install
$ bower install conekta.js --save
Usage
Basic initialization
In your HTML, before the body tag closes, include jQuery and Conekta
Set your public key
Conekta;
Advanced initialization
Tokenize Card
Tokenize via json
var data = "card": "number": "4242424242424242" "name": "Javier Pedreiro" "exp_year": "2018" "exp_month": "12" "cvc": "123" ; var { /* token keys: id, livemode, used, object */ console;}; var { /* err keys: object, type, message, message_to_purchaser, param, code */ console;}; ConektaToken;
Tokenize via form
Nombre del tarjetahabiente Número de tarjeta de crédito CVC Fecha de expiración (MM/AAAA) / Tokenizar!
var { /* token keys: id, livemode, used, object */ console;}; var { /* err keys: object, type, message, message_to_purchaser, param, code */ console;}; ConektaToken;
Documentation
Please see developers.conekta.com/api for up-to-date documentation.
Library Development and Testing
If you wish to make a pull request you can build and test your changes:
#build grunt #test npm test
To expedite the process you can use a docker with the library and environment preloaded:
docker pull conekta/conekta.js docker run -ti conekta/conekta.js /bin/bash --login
License
Developed in México by Conekta. Available with MIT License.
We are always hiring!
If you are 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 us your CV and GitHub to quieroser@conekta.com