capacitor-conekta
v0.1.4
Published
Native plugin to connect Conekta sdks to capacitor
Downloads
4
Readme
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: '',
});