# xpay-widget

> xpay-widget has a "XpayFtb" module

Latest version **1.3.0** (published 2022-10-14) · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install xpay-widget
pnpm add xpay-widget
yarn add xpay-widget
bun add xpay-widget
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.3.0 |
| Published | 2022-10-14 |
| First published | 2022-10-12 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 11 |
| Unpacked size | 1.2 MB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | shankaresh |

## Links

- npm: https://www.npmjs.com/package/xpay-widget
- npm.io page: https://npm.io/package/xpay-widget

## Dependencies (11)

- [axios](https://npm.io/package/axios.md) ^0.27.2
- [react](https://npm.io/package/react.md) ^18.2.0
- [@mui/lab](https://npm.io/package/@mui/lab.md) ^5.0.0-alpha.93
- [date-fns](https://npm.io/package/date-fns.md) ^2.29.1
- [react-dom](https://npm.io/package/react-dom.md) ^18.2.0
- [prop-types](https://npm.io/package/prop-types.md) ^15.8.1
- [@mui/material](https://npm.io/package/@mui/material.md) ^5.9.3
- [@emotion/react](https://npm.io/package/@emotion/react.md) ^11.10.0
- [@emotion/styled](https://npm.io/package/@emotion/styled.md) ^11.10.0
- [@mui/icons-material](https://npm.io/package/@mui/icons-material.md) ^5.8.4
- [@mui/x-date-pickers](https://npm.io/package/@mui/x-date-pickers.md) ^5.0.0-beta.3

## Recent versions

- 1.3.0 (latest) — 2022-10-14
- 1.1.0 — 2022-10-13
- 1.0.0 — 2022-10-12

## README

## 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.

---
_Source: https://npm.io/package/xpay-widget · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
