Skip to content

nericode/nativescript-conekta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nativescript-conekta [Deprecated]

Conekta nativescript-conekta allows tokenize (encrypt) the data of the card of your final user

Please use: https://github.com/happones/nativescript-conekta

Installation

tns plugin add nativescript-conekta

Support

It only supports Android, but it is working on the iOS plugin.

Use

The plugin is relatively simple, simply add the reference Conekta, create an object and pass the data to tokenize.

NOTE: It is your responsibility to validate the card.

import { Conekta } from 'nativescript-conekta';

....

this.conekta = new Conekta();

let options:ConektaOptions = {
	name: "Fulanito Pérez",
	numberCard: "4242424242424242",
	cvc: "332",
	expMonth: "11",
	expYear: "2020",
	publicKey: "PUBLIC_KEY" // Se obtiene desde la plataforma de Conekta
}

this.conekta.createToken(options).then(function (token) {
		console.log("Token: " + token);
},
function(e) {
		console.log(e);
});

About

Nativescript Plugin for Conekta [Deprecated]

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published