xpay-redirect 0.3.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -43
- package/dist/index.js +164 -0
- package/package.json +7 -4
- package/dist/xpayroute.js +0 -6408
- package/dist/xpayroute.umd.cjs +0 -106
- package/index.html +0 -13
- package/public/vite.svg +0 -1
- package/src/App.jsx +0 -60
- package/src/Screens/BtnScreen/index.jsx +0 -145
- package/src/Screens/FTBScreen/FTB/FTBTransactionPage.jsx +0 -732
- package/src/Screens/FTBScreen/FTB/RegNewAccount.jsx +0 -377
- package/src/Screens/FTBScreen/index.jsx +0 -107
- package/src/Screens/index.jsx +0 -2
- package/src/assets/ai Icon/ai Icon-1.png +0 -0
- package/src/assets/ai Icon/ai Icon-2.png +0 -0
- package/src/assets/ai Icon/ai Icon-3.png +0 -0
- package/src/assets/ai Icon/ai Icon-4.png +0 -0
- package/src/assets/ai Icon/ai Icon-5.png +0 -0
- package/src/index.css +0 -40
- package/src/main.jsx +0 -10
- package/vite.config.js +0 -31
package/README.md
CHANGED
|
@@ -1,53 +1,41 @@
|
|
|
1
1
|
## Installation
|
|
2
2
|
|
|
3
|
-
xpay-redirect
|
|
3
|
+
`<script src="https://cdn.jsdelivr.net/npm/xpay-redirect@1.0.0/dist/index.min.js"></script>`
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Implementation
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
npm install xpay-redirect
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Steps
|
|
12
|
-
|
|
13
|
-
step 1: Install latest version `npm install xpay-redirect`.
|
|
14
|
-
|
|
15
|
-
step 2: import modules and with props name `config`.
|
|
7
|
+
1. open new page and implement this package.
|
|
16
8
|
|
|
17
9
|
```
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
/>
|
|
10
|
+
<div id="xpay-ftb-web-redirect"></div>
|
|
11
|
+
|
|
12
|
+
<script src="https://cdn.jsdelivr.net/npm/xpay-redirect@1.0.0/dist/index.min.js"></script>
|
|
13
|
+
|
|
14
|
+
<script>
|
|
15
|
+
const config = {
|
|
16
|
+
baseurl:string,
|
|
17
|
+
transactionDetails: {
|
|
18
|
+
txid: number,
|
|
19
|
+
amount: number,
|
|
20
|
+
purchaseCurrency: string,
|
|
21
|
+
purchaseAmount: number,
|
|
22
|
+
expiryTime: string,
|
|
23
|
+
},
|
|
24
|
+
popupStatus: string, // if tx is FAILED or EXPIRED or Invalid Session send popupStatus or send '' empty string
|
|
25
|
+
sessionid: string,
|
|
26
|
+
paymenttokenid: string,
|
|
27
|
+
merchantName: string,
|
|
28
|
+
merchantUrl: string,
|
|
29
|
+
onResponse: function(data){},
|
|
30
|
+
onError: function(data){},
|
|
31
|
+
onPopupClose: function(data){}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
FtbScreenIndex.XpayRedirect(config);
|
|
35
|
+
</script>
|
|
45
36
|
```
|
|
46
37
|
|
|
47
38
|
## Note
|
|
48
39
|
|
|
49
|
-
-
|
|
50
|
-
|
|
51
|
-
## Example
|
|
52
|
-
|
|
53
|
-
[Sample app](https://github.com/shankareshBB)
|
|
40
|
+
- if transaction is FAILED or EXPIRED or Invalid Session send popupStatus or send '' empty string
|
|
41
|
+
- onResponse, onError and onPopupClose are function. Pass one parameter and to get access of it.
|