xpay-redirect 1.0.0 → 1.1.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.
Files changed (3) hide show
  1. package/README.md +5 -5
  2. package/dist/index.js +11 -11
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## Installation
2
2
 
3
- `<script src="https://cdn.jsdelivr.net/npm/xpay-redirect@1.0.0/dist/index.min.js"></script>`
3
+ `<script src="https://cdn.jsdelivr.net/npm/xpay-redirect@1.1.0/dist/index.min.js"></script>`
4
4
 
5
5
  ## Implementation
6
6
 
@@ -9,7 +9,7 @@
9
9
  ```
10
10
  <div id="xpay-ftb-web-redirect"></div>
11
11
 
12
- <script src="https://cdn.jsdelivr.net/npm/xpay-redirect@1.0.0/dist/index.min.js"></script>
12
+ <script src="https://cdn.jsdelivr.net/npm/xpay-redirect@1.1.0/dist/index.min.js"></script>
13
13
 
14
14
  <script>
15
15
  const config = {
@@ -21,7 +21,7 @@
21
21
  purchaseAmount: number,
22
22
  expiryTime: string,
23
23
  },
24
- popupStatus: string, // if tx is FAILED or EXPIRED or Invalid Session send popupStatus or send '' empty string
24
+ popupStatus: string, // if tx is PENDING send '' empty string or send tx status at popupStatus
25
25
  sessionid: string,
26
26
  paymenttokenid: string,
27
27
  merchantName: string,
@@ -31,11 +31,11 @@
31
31
  onPopupClose: function(data){}
32
32
  };
33
33
 
34
- FtbScreenIndex.XpayRedirect(config);
34
+ xpayftb.XpayRedirect(config);
35
35
  </script>
36
36
  ```
37
37
 
38
38
  ## Note
39
39
 
40
- - if transaction is FAILED or EXPIRED or Invalid Session send popupStatus or send '' empty string
40
+ - if transaction is PENDING send '' empty string or send transaction status at popupStatus
41
41
  - onResponse, onError and onPopupClose are function. Pass one parameter and to get access of it.