nativescript-conekta-sdk
v0.1.0
Published
Nativescript Plugin for payments Conekta.
Downloads
2
Maintainers
Readme
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