Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nericode/nativescript-conekta
Nativescript Plugin for Conekta [Deprecated]
https://github.com/nericode/nativescript-conekta
nativescript nativescript-plugin
Last synced: 17 days ago
JSON representation
Nativescript Plugin for Conekta [Deprecated]
- Host: GitHub
- URL: https://github.com/nericode/nativescript-conekta
- Owner: nericode
- License: apache-2.0
- Created: 2018-04-29T04:00:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-29T16:17:42.000Z (over 6 years ago)
- Last Synced: 2024-04-16T16:18:22.957Z (9 months ago)
- Topics: nativescript, nativescript-plugin
- Language: TypeScript
- Homepage:
- Size: 1.96 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```javascript
tns plugin add nativescript-conekta
```
## SupportIt 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.
```javascript
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);
});
```