@paydock/client-sdk 1.116.0-beta → 1.116.2

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.
@@ -893,7 +893,7 @@
893
893
  version: 'x-sdk-version',
894
894
  type: 'x-sdk-type'
895
895
  });
896
- SDK._version = 'v1.116.0-beta';
896
+ SDK._version = 'v1.116.2';
897
897
 
898
898
  /******************************************************************************
899
899
  Copyright (c) Microsoft Corporation.
@@ -3960,8 +3960,8 @@
3960
3960
  var params = {
3961
3961
  enabled: 'true',
3962
3962
  accountId: '974691',
3963
- agentId: '1386157150',
3964
- applicationId: '1386157150',
3963
+ agentId: '1386157152',
3964
+ applicationId: '1386157152',
3965
3965
  licenseKey: '4848a32285',
3966
3966
  trustKey: '974691'
3967
3967
  };
@@ -9109,8 +9109,6 @@
9109
9109
  * @param {string} CHECKOUT_POPUP_CLOSE=checkoutPopupClose Event sent when Click To Pay checkout flow is closed, regardless of embedded or windowed mode.
9110
9110
  * @param {string} CHECKOUT_COMPLETED=checkoutCompleted Event sent on successful checkout by customer. Check [data](#EventDataCheckoutCompletedData) for more information.
9111
9111
  * @param {string} CHECKOUT_ERROR=checkoutError Event sent on error checkout by customer. Check [data](#EventData) for more information.
9112
- * @param {string} RECOGNITION_TOKEN_REQUESTED=recognitionTokenRequested Event sent when a recognition token was found on the mastercard SDK response.
9113
- * @param {string} RECOGNITION_TOKEN_DROPPED=recognitionTokenDropped Event sent when a recognition token needs to be dropped for user be no longer remembered.
9114
9112
  */
9115
9113
  var EVENT$3;
9116
9114
  (function (EVENT) {
@@ -9120,8 +9118,6 @@
9120
9118
  EVENT["CHECKOUT_ERROR"] = "checkoutError";
9121
9119
  EVENT["CHECKOUT_POPUP_OPEN"] = "checkoutPopupOpen";
9122
9120
  EVENT["CHECKOUT_POPUP_CLOSE"] = "checkoutPopupClose";
9123
- EVENT["RECOGNITION_TOKEN_REQUESTED"] = "recognitionTokenRequested";
9124
- EVENT["RECOGNITION_TOKEN_DROPPED"] = "recognitionTokenDropped";
9125
9121
  })(EVENT$3 || (EVENT$3 = {}));
9126
9122
  /**
9127
9123
  * List of available event data types
@@ -9198,13 +9194,6 @@
9198
9194
  var data = _ref5.data;
9199
9195
  _this.eventEmitter.emit(EVENT$3.CHECKOUT_ERROR, data);
9200
9196
  });
9201
- this.iFrameEvent.on(EVENT$3.RECOGNITION_TOKEN_REQUESTED, widgetId, function (_ref6) {
9202
- var data = _ref6.data;
9203
- _this.eventEmitter.emit(EVENT$3.RECOGNITION_TOKEN_REQUESTED, data);
9204
- });
9205
- this.iFrameEvent.on(EVENT$3.RECOGNITION_TOKEN_DROPPED, widgetId, function () {
9206
- _this.eventEmitter.emit(EVENT$3.RECOGNITION_TOKEN_DROPPED);
9207
- });
9208
9197
  if (this.autoResize) this.useAutoResize(true);
9209
9198
  }
9210
9199
  }, {
@@ -9252,8 +9241,8 @@
9252
9241
  this.autoResize = true;
9253
9242
  var params = this.link.getParams();
9254
9243
  if (!(params === null || params === void 0 ? void 0 : params.widget_id)) return;
9255
- this.iFrameEvent.on('resize', params.widget_id, function (_ref7) {
9256
- var data = _ref7.data;
9244
+ this.iFrameEvent.on('resize', params.widget_id, function (_ref6) {
9245
+ var data = _ref6.data;
9257
9246
  var _a, _b;
9258
9247
  var iframeElement = _this3.iFrame.getElement();
9259
9248
  if (iframeElement) {
@@ -14703,7 +14692,7 @@
14703
14692
  _iterator.s();
14704
14693
  case 4:
14705
14694
  if ((_step = _iterator.n()).done) {
14706
- _context.next = 18;
14695
+ _context.next = 11;
14707
14696
  break;
14708
14697
  }
14709
14698
  method = _step.value;
@@ -14711,46 +14700,30 @@
14711
14700
  _context.next = 8;
14712
14701
  break;
14713
14702
  }
14714
- return _context.abrupt("continue", 16);
14703
+ return _context.abrupt("continue", 9);
14715
14704
  case 8:
14716
- _context.t0 = method === PAYMENTS_METHODS.GOOGLE_PAY;
14717
- if (!_context.t0) {
14718
- _context.next = 13;
14719
- break;
14720
- }
14721
- _context.next = 12;
14722
- return this.isGooglePaySupported();
14723
- case 12:
14724
- _context.t0 = !_context.sent;
14725
- case 13:
14726
- if (!_context.t0) {
14727
- _context.next = 15;
14728
- break;
14729
- }
14730
- return _context.abrupt("continue", 16);
14731
- case 15:
14732
14705
  paymentMethodsAllowed.push(PAYMENT_METHOD[method]);
14733
- case 16:
14706
+ case 9:
14734
14707
  _context.next = 4;
14735
14708
  break;
14736
- case 18:
14737
- _context.next = 23;
14709
+ case 11:
14710
+ _context.next = 16;
14738
14711
  break;
14739
- case 20:
14740
- _context.prev = 20;
14741
- _context.t1 = _context["catch"](2);
14742
- _iterator.e(_context.t1);
14743
- case 23:
14744
- _context.prev = 23;
14712
+ case 13:
14713
+ _context.prev = 13;
14714
+ _context.t0 = _context["catch"](2);
14715
+ _iterator.e(_context.t0);
14716
+ case 16:
14717
+ _context.prev = 16;
14745
14718
  _iterator.f();
14746
- return _context.finish(23);
14747
- case 26:
14719
+ return _context.finish(16);
14720
+ case 19:
14748
14721
  resolve(paymentMethodsAllowed.join(' '));
14749
- case 27:
14722
+ case 20:
14750
14723
  case "end":
14751
14724
  return _context.stop();
14752
14725
  }
14753
- }, _callee, this, [[2, 20, 23, 26]]);
14726
+ }, _callee, this, [[2, 13, 16, 19]]);
14754
14727
  }));
14755
14728
  });
14756
14729
  initState.then(function (content) {
@@ -14816,45 +14789,6 @@
14816
14789
  value: function isApplePaySupported() {
14817
14790
  return window.ApplePaySession && ApplePaySession.canMakePayments();
14818
14791
  }
14819
- }, {
14820
- key: "isGooglePaySupported",
14821
- value: function isGooglePaySupported() {
14822
- return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
14823
- var paymentRequest;
14824
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
14825
- while (1) switch (_context2.prev = _context2.next) {
14826
- case 0:
14827
- _context2.prev = 0;
14828
- if (window.PaymentRequest) {
14829
- _context2.next = 3;
14830
- break;
14831
- }
14832
- return _context2.abrupt("return", false);
14833
- case 3:
14834
- paymentRequest = new PaymentRequest([{
14835
- supportedMethods: 'https://google.com/pay'
14836
- }], {
14837
- total: {
14838
- label: 'Test',
14839
- amount: {
14840
- currency: 'USD',
14841
- value: '0.00'
14842
- }
14843
- }
14844
- });
14845
- return _context2.abrupt("return", paymentRequest.canMakePayment());
14846
- case 7:
14847
- _context2.prev = 7;
14848
- _context2.t0 = _context2["catch"](0);
14849
- console.error('Error google pay check support:');
14850
- return _context2.abrupt("return", false);
14851
- case 11:
14852
- case "end":
14853
- return _context2.stop();
14854
- }
14855
- }, _callee2, null, [[0, 7]]);
14856
- }));
14857
- }
14858
14792
  }, {
14859
14793
  key: "setStylesToStandaloneWidget",
14860
14794
  value: function setStylesToStandaloneWidget() {