@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.js CHANGED
@@ -22441,7 +22441,9 @@ var PaymentProvider = (function (props) {
22441
22441
  }
22442
22442
  setPaymentState('success');
22443
22443
  if (succeeded) {
22444
- succeeded(transaction);
22444
+ setTimeout(function () {
22445
+ return succeeded(transaction);
22446
+ }, 200);
22445
22447
  }
22446
22448
  };
22447
22449
  var paymentFailed = function paymentFailed(transaction, error) {
@@ -23995,13 +23997,15 @@ var PaymentTrackingProvider = (function (props) {
23995
23997
  }
23996
23998
  var success = item.message.status == 'success';
23997
23999
  if (validated) {
23998
- validated(success);
24000
+ setTimeout(function () {
24001
+ return validated(success);
24002
+ }, 200);
23999
24003
  }
24000
24004
  if (item.message.release) {
24001
24005
  socket.close(1000);
24002
24006
  if (success) {
24003
24007
  setRelease(true);
24004
- setClosable(!item.message.forward_to);
24008
+ setClosable(true);
24005
24009
  setForwardTo(item.message.forward_to);
24006
24010
  if (!!item.message.forward_to) {
24007
24011
  setTimeout(function () {
@@ -24095,10 +24099,11 @@ var PaymentTrackingProvider = (function (props) {
24095
24099
  var handlePollingResponse = function handlePollingResponse(data) {
24096
24100
  if (data) {
24097
24101
  if (data && data.forward_to) {
24102
+ setClosable(true);
24098
24103
  setForwardTo(data.forward_to);
24099
24104
  setTimeout(function () {
24100
24105
  props.document.location.href = data.forward_to;
24101
- }, 100);
24106
+ }, 200);
24102
24107
  } else {
24103
24108
  setClosable(true);
24104
24109
  }