nativescript-conekta-sdk
Nativescript Plugin for payments Conekta.
npm i --save nativescript-conekta-sdk

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