capacitor-conekta
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

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: '',
});

Readme

Keywords

Package Sidebar

Install

npm i capacitor-conekta

Weekly Downloads

0

Version

0.1.4

License

MIT

Unpacked Size

304 kB

Total Files

97

Last publish

Collaborators

  • jenriquez