onlypass-capacitor-plugin
v1.0.0
Published
The Onlpass API provides the ability to open an in-app browser and subscribe to payment gateways.
Downloads
3
Readme
onlypass-capacitor-plugin
The Onlypass API provides One platform to access all payment and fintech services across Africa.
Install
npm install onlypass-capacitor-plugin
npx cap sync
Android
Variables
This plugin will use the following project variables:
- amount:string; *gateway:string; // (payment getways e.g paysack,flutterwave,monnify,voguepay) seperated by comma
- apikey:string;
- memo:string;
Example
import { Onlypass } from 'onlypass-capacitor-plugin';
const Payment = async () => {
await Onlypass.PayNow({
amount:"5000",
gateway:"paysack,flutterwave,monnify,voguepay",
memo:"Payment for shoe item",
apikey:"onlypass-test"
});
};
API
PayNow(...)
PayNow(options: OpenOptions) => Promise<void>