npm i --save nativescript-conekta-sdk
- Version: 0.1.0
- GitHub:
- NPM: https://www.npmjs.com/package/nativescript-conekta-sdk
- Downloads:
- Last Day: 0
- Last Week: 0
- Last Month: 0
Nativescript Conekta Sdk
Works on ios and android
Installation
Install with following command:
tns plugin add nativescript-conekta
// or
npm i nativescript-conekta
So while cloning from the repo
Usage
TypeScript
import { TNSConekta } from 'nativescript-conekta'
private conekta: TNSConekta;
this.conekta = new TNSConekta()
this.conekta.setPublicKey('your_key')
this.conekta.createToken(params) // Promise, params is required, (name, number, cvc, exp_month, exp_year)
JavaScript
const TNSConekta = require('nativescript-conekta').TNSConekta;
const conekta = new TNSConekta()
conekta.setPublicKey('your_key')
conekta.setLanguage('en') // only in android
conekta.createToken(params) // Promise, params is required, (name, number, cvc, exp_month, exp_year)
License
Apache License Version 2.0, January 2004