0.1.4 • Published 5 years ago

capacitor-conekta v0.1.4

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
5 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

5 years ago

0.1.3

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago