xpay-redirect 1.4.5 → 1.4.7
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 +4 -2
- package/dist/index.js +22 -22
- package/package.json +1 -1
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.
|
|
7
|
+
**_`<script src="https://cdn.jsdelivr.net/npm/xpay-redirect@1.4.7/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.
|
|
30
|
+
<script src="https://cdn.jsdelivr.net/npm/xpay-redirect@1.4.7/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.
|
|
@@ -38,6 +38,7 @@ Use this script tag to get access to the xpay redirection.
|
|
|
38
38
|
baseurl: string,
|
|
39
39
|
sessionid: string,
|
|
40
40
|
paymenttokenid: string,
|
|
41
|
+
delayTime: number,
|
|
41
42
|
merchantName: string,
|
|
42
43
|
merchantUrl: string,
|
|
43
44
|
onResponse: function (data) {},
|
|
@@ -56,6 +57,7 @@ _Here, the config variable is used to pass the data as an object to the xpayftb.
|
|
|
56
57
|
|
|
57
58
|
- _**`baseurl`** should pass as a string value. It is used as the base URL for API calls._
|
|
58
59
|
- _**`sessionid`** and **`paymenttokenid`** should pass as a string value. It is used all over the xpay._
|
|
60
|
+
- _**`delayTime`** should pass a number as seconds to close the popup._
|
|
59
61
|
- _**`merchantName`** is used to display the merchant name at xpay. And pass it as a string value._
|
|
60
62
|
- _**`merchantUrl`** should pass as a string value. It is used to return the merchant back to the checkout page or any URL or **`#`** ._
|
|
61
63
|
- _**`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._
|