@depay/widgets 10.2.5 → 10.2.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/dist/esm/index.bundle.js +1 -1
- package/dist/esm/index.js +9 -4
- package/dist/umd/index.bundle.js +1 -1
- package/dist/umd/index.js +9 -4
- package/package.json +1 -1
package/dist/umd/index.js
CHANGED
|
@@ -22435,7 +22435,9 @@
|
|
|
22435
22435
|
}
|
|
22436
22436
|
setPaymentState('success');
|
|
22437
22437
|
if (succeeded) {
|
|
22438
|
-
|
|
22438
|
+
setTimeout(function () {
|
|
22439
|
+
return succeeded(transaction);
|
|
22440
|
+
}, 200);
|
|
22439
22441
|
}
|
|
22440
22442
|
};
|
|
22441
22443
|
var paymentFailed = function paymentFailed(transaction, error) {
|
|
@@ -23989,13 +23991,15 @@
|
|
|
23989
23991
|
}
|
|
23990
23992
|
var success = item.message.status == 'success';
|
|
23991
23993
|
if (validated) {
|
|
23992
|
-
|
|
23994
|
+
setTimeout(function () {
|
|
23995
|
+
return validated(success);
|
|
23996
|
+
}, 200);
|
|
23993
23997
|
}
|
|
23994
23998
|
if (item.message.release) {
|
|
23995
23999
|
socket.close(1000);
|
|
23996
24000
|
if (success) {
|
|
23997
24001
|
setRelease(true);
|
|
23998
|
-
setClosable(
|
|
24002
|
+
setClosable(true);
|
|
23999
24003
|
setForwardTo(item.message.forward_to);
|
|
24000
24004
|
if (!!item.message.forward_to) {
|
|
24001
24005
|
setTimeout(function () {
|
|
@@ -24089,10 +24093,11 @@
|
|
|
24089
24093
|
var handlePollingResponse = function handlePollingResponse(data) {
|
|
24090
24094
|
if (data) {
|
|
24091
24095
|
if (data && data.forward_to) {
|
|
24096
|
+
setClosable(true);
|
|
24092
24097
|
setForwardTo(data.forward_to);
|
|
24093
24098
|
setTimeout(function () {
|
|
24094
24099
|
props.document.location.href = data.forward_to;
|
|
24095
|
-
},
|
|
24100
|
+
}, 200);
|
|
24096
24101
|
} else {
|
|
24097
24102
|
setClosable(true);
|
|
24098
24103
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depay/widgets",
|
|
3
3
|
"moduleName": "DePayWidgets",
|
|
4
|
-
"version": "10.2.
|
|
4
|
+
"version": "10.2.7",
|
|
5
5
|
"description": "Web3 Payments with any token. DePay simplifies and improves Web3 Payments with the power of DeFi. Accept any token with on-the-fly conversion.",
|
|
6
6
|
"main": "./dist/umd/index.js",
|
|
7
7
|
"module": "./dist/esm/index.js",
|