@pinerohit11/testwidget 0.2.111 → 0.2.113

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/index.js CHANGED
@@ -2576,6 +2576,8 @@ function GetPaymentPage(props) {
2576
2576
  } catch (err) {
2577
2577
  setActive("card");
2578
2578
  hideLoader();
2579
+ handleClose();
2580
+ showError("Something went wrong , Try again later");
2579
2581
  }
2580
2582
  };
2581
2583
  const handlechargeCustomer = async () => {
@@ -3176,6 +3178,8 @@ function PreAuthPayment(props) {
3176
3178
  console.log(err);
3177
3179
  setActive("card");
3178
3180
  hideLoader();
3181
+ handleClose();
3182
+ showError("Something went wrong , Try again later");
3179
3183
  }
3180
3184
  };
3181
3185
  const handlechargeCustomer = async () => {
@@ -4392,7 +4396,7 @@ function AddCardEasyPay(props) {
4392
4396
  orderId: "",
4393
4397
  zipCode: ""
4394
4398
  });
4395
- HandleSubmit(e, "message", "");
4399
+ HandleSubmit(e, "close", "");
4396
4400
  } catch (err) {
4397
4401
  console.log(err);
4398
4402
  hideLoader();
@@ -4457,6 +4461,7 @@ function AddCardEasyPay(props) {
4457
4461
  if ((_h = addCardRes == null ? void 0 : addCardRes.data) == null ? void 0 : _h.result) {
4458
4462
  setSuccess(true);
4459
4463
  hideLoader();
4464
+ HandleSubmit(e, "close", "");
4460
4465
  }
4461
4466
  } catch (err) {
4462
4467
  hideLoader();
package/dist/index.mjs CHANGED
@@ -2538,6 +2538,8 @@ function GetPaymentPage(props) {
2538
2538
  } catch (err) {
2539
2539
  setActive("card");
2540
2540
  hideLoader();
2541
+ handleClose();
2542
+ showError("Something went wrong , Try again later");
2541
2543
  }
2542
2544
  };
2543
2545
  const handlechargeCustomer = async () => {
@@ -3138,6 +3140,8 @@ function PreAuthPayment(props) {
3138
3140
  console.log(err);
3139
3141
  setActive("card");
3140
3142
  hideLoader();
3143
+ handleClose();
3144
+ showError("Something went wrong , Try again later");
3141
3145
  }
3142
3146
  };
3143
3147
  const handlechargeCustomer = async () => {
@@ -4354,7 +4358,7 @@ function AddCardEasyPay(props) {
4354
4358
  orderId: "",
4355
4359
  zipCode: ""
4356
4360
  });
4357
- HandleSubmit(e, "message", "");
4361
+ HandleSubmit(e, "close", "");
4358
4362
  } catch (err) {
4359
4363
  console.log(err);
4360
4364
  hideLoader();
@@ -4419,6 +4423,7 @@ function AddCardEasyPay(props) {
4419
4423
  if ((_h = addCardRes == null ? void 0 : addCardRes.data) == null ? void 0 : _h.result) {
4420
4424
  setSuccess(true);
4421
4425
  hideLoader();
4426
+ HandleSubmit(e, "close", "");
4422
4427
  }
4423
4428
  } catch (err) {
4424
4429
  hideLoader();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinerohit11/testwidget",
3
- "version": "0.2.111",
3
+ "version": "0.2.113",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "next dev -p 4001",