1.3.0 • Published 2 years ago
xpay-widget v1.3.0
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.