0.1.4 • Published 6 years ago

capacitor-conekta v0.1.4

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
6 years ago

Capacitor Conekta

Capacitor plugin for Conketa

Install

npm install capacitor-conekta

Web

Register the plugin by importing it.

import "capacitor-conekta";

Android

In file android/app/src/main/AndroidManifest.xml add the following under <application></application>:

<uses-library android:name ="org.apache.http.legacy" android:required ="false"/>

Register the plugin inside your android/app/src/main/java/**/**/MainActivity.java file

import lat.bit.plugin.capacitor.conekta.ConektaClient;
[...]
this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {
      {
        [...]
        add(ConektaClient.class);
        [...]
      }
    });

Use it

await Conekta.setPublicKey(<your conekta public key>);
const token = await Conekta.createToken({
  cardNumber: '',
  name: '',
  expYear: '',
  expMonth: '',
  cvc: '',
});
0.1.4

6 years ago

0.1.3

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago