xpay-redirect 1.4.1 → 1.4.3

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 +3 -3
  2. package/dist/index.js +19 -19
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Use this script tag to get access to the xpay redirection.
6
6
 
7
- **_`<script src="https://cdn.jsdelivr.net/npm/xpay-redirect@1.4.1/dist/index.min.js"></script>`_**
7
+ **_`<script src="https://cdn.jsdelivr.net/npm/xpay-redirect@1.4.3/dist/index.min.js"></script>`_**
8
8
 
9
9
  ## Implementation:
10
10
 
@@ -27,7 +27,7 @@ Use this script tag to get access to the xpay redirection.
27
27
  4. Add a Script tag to the head tag or body tag. And use the latest version.
28
28
 
29
29
  ```html
30
- <script src="https://cdn.jsdelivr.net/npm/xpay-redirect@1.4.1/dist/index.min.js"></script>
30
+ <script src="https://cdn.jsdelivr.net/npm/xpay-redirect@1.4.3/dist/index.min.js"></script>
31
31
  ```
32
32
 
33
33
  5. Next, add the script tag at a necessary place. But add below the source script.
@@ -60,4 +60,4 @@ _Here, the config variable is used to pass the data as an object to the xpayftb.
60
60
  - _**`merchantUrl`** should pass as a string value. It is used to return the merchant back to the checkout page or any URL or **`#`** ._
61
61
  - _**`onResponse`** is a callback function. It is getting called when the API gives a successful response. Return data is an object with its API endpoint and result._
62
62
  - _**`onError`** is a callback function. It is getting called when the API gives an error message. Return data is an object with its API endpoint and result._
63
- - _**`onPopupClose`** is a callback function. It is getting called when the user cancels the transaction or on close of payment success. Return data is an object with its action and result._
63
+ - _**`onPopupClose`** is a callback function. It is getting called when the user cancels the transaction or on close of payment success or session gets expired. Return data is an object with its action and result._