npm.io
1.3.0 • Published 3 years ago

xpay-widget

Licence
Version
1.3.0
Deps
11
Size
1.2 MB
Vulns
23
Weekly
0
DeprecatedThis package is deprecated

Installation

xpay-widget has a "XpayFtb" module

npm:

npm install xpay-widget

Steps

step 1: Install latest version npm install xpay-widget.

step 2: import modules and with props name config.

import XpayFtb from 'ftbpaymentgateway';

.
.
.

<XpayFtb
    config={
        baseurl: string,
        showPopup: boolean,
        transactionDetails: {
            txid: number,
            amount: number,
            purchaseCurrency: string,
            purchaseAmount: number,
            expiryTime: string // default '3'
        },
        sessionid : string,
        ptokenid : string,
        merchantName: string,
        onResponse: f(),
        onError: f()
    }
/>

Note

  • onResponse and onError are function. Pass parameter and to get access of it.