0.2.29 • Published 1 year ago
vfd-widget v0.2.29
V Payment Widget
JS library for implementing the VFD payment widget - This library provides a front-end web SDK for account authentication and payment for each bank that it supports.
Installing
Using npm:
npm i vfd-widget
Using yarn:
yarn add vfd-widget
Usuage
For JS frameworks import it and use
import VPayment from 'vfd-widget';
const widget = new VPayment({
token: '', // Your token
merchantId: '', // Merchant Id
environment: '', // Environment at which the app is running development/production,
});
async function payNow(amount) {
widget.pay({
amount, // amount to pay
});
}
VPaymentWidget Options
Name | Type | Required | Default Value | Description |
---|---|---|---|---|
pay | Function | true | Action to perform to pay an amount of money |
Other information
For enquires and questions, contact