@paydock/client-sdk 1.116.2 → 1.117.0-beta

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/bundles/index.cjs CHANGED
@@ -891,7 +891,7 @@ SDK.headerKeys = Object.freeze({
891
891
  version: 'x-sdk-version',
892
892
  type: 'x-sdk-type'
893
893
  });
894
- SDK._version = 'v1.116.2';
894
+ SDK._version = 'v1.117.0-beta';
895
895
 
896
896
  /******************************************************************************
897
897
  Copyright (c) Microsoft Corporation.
@@ -3958,8 +3958,8 @@ function createNewrelicConfig() {
3958
3958
  var params = {
3959
3959
  enabled: 'true',
3960
3960
  accountId: '974691',
3961
- agentId: '1386157152',
3962
- applicationId: '1386157152',
3961
+ agentId: '1386157150',
3962
+ applicationId: '1386157150',
3963
3963
  licenseKey: '4848a32285',
3964
3964
  trustKey: '974691'
3965
3965
  };
@@ -4223,6 +4223,10 @@ var ApiBase = /*#__PURE__*/function () {
4223
4223
  request.onreadystatechange = function () {
4224
4224
  if (_this2.stoppedPooling) return;
4225
4225
  if (request.readyState === 4) {
4226
+ if (request.status === 403) {
4227
+ _this2.stoppedPooling = true;
4228
+ return;
4229
+ }
4226
4230
  if (request.status === 200 || request.status === 201) {
4227
4231
  var data = JSON.parse(request.responseText);
4228
4232
  if (SessionHelper.sessionId !== data.resource.data.intent_id) {
@@ -4666,20 +4670,24 @@ var IFrame = /*#__PURE__*/function () {
4666
4670
  key: "load",
4667
4671
  value: function load(link) {
4668
4672
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
4673
+ var iframeClass = arguments.length > 2 ? arguments[2] : undefined;
4669
4674
  if (!this.container.isExist() || this.isExist()) return;
4670
4675
  var iFrame = document.createElement('iframe');
4671
4676
  iFrame.setAttribute('src', link);
4672
4677
  if (options.title) iFrame.title = options.title;
4678
+ if (iframeClass) iFrame.classList.add(iframeClass);
4673
4679
  this.container.getElement().appendChild(iFrame);
4674
4680
  }
4675
4681
  }, {
4676
4682
  key: "loadFromHtml",
4677
4683
  value: function loadFromHtml(content) {
4678
4684
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
4685
+ var iframeClass = arguments.length > 2 ? arguments[2] : undefined;
4679
4686
  if (!this.container.isExist() || this.isExist()) return;
4680
4687
  var iFrame = document.createElement('iframe');
4681
4688
  iFrame.setAttribute('height', '100%');
4682
4689
  iFrame.setAttribute('width', '100%');
4690
+ if (iframeClass) iFrame.classList.add(iframeClass);
4683
4691
  if (options.title) iFrame.title = options.title;
4684
4692
  var template = "<html><head><style>html, body {margin: 0;} iframe {border: 0; width: 100%}</style><title></title></head><body>{{content}}</body></html>";
4685
4693
  this.container.getElement().appendChild(iFrame);
@@ -5325,9 +5333,9 @@ var Canvas3ds = /*#__PURE__*/function () {
5325
5333
  function load() {
5326
5334
  if (this.token.format === TOKEN_FORMAT.HTML) this.iFrame.loadFromHtml(this.token.content, {
5327
5335
  title: '3d secure authentication'
5328
- });else if (this.token.format === TOKEN_FORMAT.URL) this.iFrame.load(this.token.content, {
5336
+ }, 'threeDSecure-iframe');else if (this.token.format === TOKEN_FORMAT.URL) this.iFrame.load(this.token.content, {
5329
5337
  title: '3d secure authentication'
5330
- });else if (this.token.format === TOKEN_FORMAT.STANDALONE_3DS) this.standalone3dsService.load(this.token.content, {
5338
+ }, 'threeDSecure-iframe');else if (this.token.format === TOKEN_FORMAT.STANDALONE_3DS) this.standalone3dsService.load(this.token.content, {
5331
5339
  title: '3d secure authentication'
5332
5340
  });else console.error('Token contain unsupported payload');
5333
5341
  }
@@ -15307,7 +15315,7 @@ function getVersionInstructions(version) {
15307
15315
  }
15308
15316
  }
15309
15317
 
15310
- var additional = "\n<style>\n #standaloneWidget iframe, #list iframe {\n display: block;\n max-width: 640px;\n min-width: 320px;\n width: 100%;\n border-width: 0;\n }\n .spinner-wrapper {\n position: absolute;\n width: calc(100% + 1px);\n height: calc(100% + 1px);\n top: 0;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 999;\n }\n \n .spinner-wrapper svg {\n position: absolute;\n\n height: 50px;\n width: 50px;\n z-index: 1000;\n }\n \n .spinner-wrapper .background {\n margin: 0 !important;\n background: #f9f9f9;\n color: #f9f9f9;\n word-break: break-all;\n white-space: pre-wrap;\n width: 100%;\n height: 100%;\n }\n \n .spinner-wrapper--hidden {\n display: none;\n }\n #standaloneWidget .paypal-buttons {\n padding-bottom: 12px;\n right: 40px;\n max-width: 290px;\n }\n #standaloneWidget #gpay-button-online-api-id {\n max-width: 311px;\n margin-bottom: 11px;\n right: 11px;\n }\n #standaloneWidget .paydock-apple-container {\n max-width: 300px;\n margin-right: 10px;\n margin-bottom: 10px\n }\n</style>\n<div id=\"spinner\" class=\"spinner-wrapper spinner-wrapper--hidden\">\n <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><radialGradient id='a5' cx='.66' fx='.66' cy='.3125' fy='.3125' gradientTransform='scale(1.5)'><stop offset='0' stop-color='#191919'></stop><stop offset='.3' stop-color='#191919' stop-opacity='.9'></stop><stop offset='.6' stop-color='#191919' stop-opacity='.6'></stop><stop offset='.8' stop-color='#191919' stop-opacity='.3'></stop><stop offset='1' stop-color='#191919' stop-opacity='0'></stop></radialGradient><circle transform-origin='center' fill='none' stroke='url(#a5)' stroke-width='30' stroke-linecap='round' stroke-dasharray='200 1000' stroke-dashoffset='0' cx='100' cy='100' r='70'><animateTransform type='rotate' attributeName='transform' calcMode='spline' dur='1' values='360;0' keyTimes='0;1' keySplines='0 0 1 1' repeatCount='indefinite'></animateTransform></circle><circle transform-origin='center' fill='none' opacity='.2' stroke='#191919' stroke-width='30' stroke-linecap='round' cx='100' cy='100' r='70'></circle></svg>\n <pre class=\"background\"></pre>\n</div>\n";
15318
+ var additional = "\n<style>\n #standaloneWidget iframe[title=\"3d secure authentication\"],\n #standaloneWidget .threeDSecure-iframe {\n height: 420px;\n }\n #standaloneWidget iframe, #list iframe {\n display: block;\n max-width: 640px;\n min-width: 320px;\n width: 100%;\n border-width: 0;\n }\n .spinner-wrapper {\n position: absolute;\n width: calc(100% + 1px);\n height: calc(100% + 1px);\n top: 0;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 999;\n }\n \n .spinner-wrapper svg {\n position: absolute;\n\n height: 50px;\n width: 50px;\n z-index: 1000;\n }\n \n .spinner-wrapper .background {\n margin: 0 !important;\n background: #f9f9f9;\n color: #f9f9f9;\n word-break: break-all;\n white-space: pre-wrap;\n width: 100%;\n height: 100%;\n }\n \n .spinner-wrapper--hidden {\n display: none;\n }\n #standaloneWidget .paypal-buttons {\n padding-bottom: 12px;\n right: 40px;\n max-width: 290px;\n }\n #standaloneWidget #gpay-button-online-api-id {\n max-width: 311px;\n margin-bottom: 11px;\n right: 11px;\n }\n #standaloneWidget .paydock-apple-container {\n max-width: 300px;\n margin-right: 10px;\n margin-bottom: 10px\n }\n</style>\n<div id=\"spinner\" class=\"spinner-wrapper spinner-wrapper--hidden\">\n <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><radialGradient id='a5' cx='.66' fx='.66' cy='.3125' fy='.3125' gradientTransform='scale(1.5)'><stop offset='0' stop-color='#191919'></stop><stop offset='.3' stop-color='#191919' stop-opacity='.9'></stop><stop offset='.6' stop-color='#191919' stop-opacity='.6'></stop><stop offset='.8' stop-color='#191919' stop-opacity='.3'></stop><stop offset='1' stop-color='#191919' stop-opacity='0'></stop></radialGradient><circle transform-origin='center' fill='none' stroke='url(#a5)' stroke-width='30' stroke-linecap='round' stroke-dasharray='200 1000' stroke-dashoffset='0' cx='100' cy='100' r='70'><animateTransform type='rotate' attributeName='transform' calcMode='spline' dur='1' values='360;0' keyTimes='0;1' keySplines='0 0 1 1' repeatCount='indefinite'></animateTransform></circle><circle transform-origin='center' fill='none' opacity='.2' stroke='#191919' stroke-width='30' stroke-linecap='round' cx='100' cy='100' r='70'></circle></svg>\n <pre class=\"background\"></pre>\n</div>\n";
15311
15319
 
15312
15320
  var EVENT$1 = {
15313
15321
  PAYMENT_SUCCESSFUL: "paymentSuccessful",
@@ -16537,7 +16545,7 @@ var PayPalSavePaymentSourceService = /*#__PURE__*/function () {
16537
16545
  _this2.paypal = window.paypal;
16538
16546
  var button = _this2.paypal.Buttons(_extends(_extends({
16539
16547
  createVaultSetupToken: function createVaultSetupToken() {
16540
- return _this2.getSetupToken(_this2.accessToken);
16548
+ return _this2.getSetupToken();
16541
16549
  },
16542
16550
  onApprove: function onApprove(_ref) {
16543
16551
  var vaultSetupToken = _ref.vaultSetupToken;
@@ -16577,11 +16585,10 @@ var PayPalSavePaymentSourceService = /*#__PURE__*/function () {
16577
16585
  }
16578
16586
  }, {
16579
16587
  key: "getSetupToken",
16580
- value: function getSetupToken(accessToken) {
16588
+ value: function getSetupToken() {
16581
16589
  var _this3 = this;
16582
16590
  return this.api.getClientPromise('POST', PAYPAL_SETUP_TOKEN_ROUTE).send({
16583
- gateway_id: this.gatewayId,
16584
- token: accessToken
16591
+ gateway_id: this.gatewayId
16585
16592
  }).then(function (responseSetupToken) {
16586
16593
  return responseSetupToken.setup_token;
16587
16594
  })["catch"](function (error) {
@@ -16628,7 +16635,6 @@ var PayPalSavePaymentSourceService = /*#__PURE__*/function () {
16628
16635
  gateway_id: this.gatewayId
16629
16636
  }).then(function (data) {
16630
16637
  _this5.idToken = data.id_token;
16631
- _this5.accessToken = data.access_token;
16632
16638
  })["catch"](function (error) {
16633
16639
  _this5.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR, _extends({
16634
16640
  error_code: ErrorCodes.ON_GET_ID_TOKEN_ERROR
@@ -661,10 +661,10 @@ declare class IFrame {
661
661
  constructor(container: Container);
662
662
  load(link: string, options?: {
663
663
  title?: string;
664
- }): void;
664
+ }, iframeClass?: string): void;
665
665
  loadFromHtml(content: string, options?: {
666
666
  title?: string;
667
- }): void;
667
+ }, iframeClass?: string): void;
668
668
  remove(): void;
669
669
  show(): void;
670
670
  hide(saveSize?: boolean): void;
package/bundles/index.mjs CHANGED
@@ -889,7 +889,7 @@ SDK.headerKeys = Object.freeze({
889
889
  version: 'x-sdk-version',
890
890
  type: 'x-sdk-type'
891
891
  });
892
- SDK._version = 'v1.116.2';
892
+ SDK._version = 'v1.117.0-beta';
893
893
 
894
894
  /******************************************************************************
895
895
  Copyright (c) Microsoft Corporation.
@@ -3956,8 +3956,8 @@ function createNewrelicConfig() {
3956
3956
  var params = {
3957
3957
  enabled: 'true',
3958
3958
  accountId: '974691',
3959
- agentId: '1386157152',
3960
- applicationId: '1386157152',
3959
+ agentId: '1386157150',
3960
+ applicationId: '1386157150',
3961
3961
  licenseKey: '4848a32285',
3962
3962
  trustKey: '974691'
3963
3963
  };
@@ -4221,6 +4221,10 @@ var ApiBase = /*#__PURE__*/function () {
4221
4221
  request.onreadystatechange = function () {
4222
4222
  if (_this2.stoppedPooling) return;
4223
4223
  if (request.readyState === 4) {
4224
+ if (request.status === 403) {
4225
+ _this2.stoppedPooling = true;
4226
+ return;
4227
+ }
4224
4228
  if (request.status === 200 || request.status === 201) {
4225
4229
  var data = JSON.parse(request.responseText);
4226
4230
  if (SessionHelper.sessionId !== data.resource.data.intent_id) {
@@ -4664,20 +4668,24 @@ var IFrame = /*#__PURE__*/function () {
4664
4668
  key: "load",
4665
4669
  value: function load(link) {
4666
4670
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
4671
+ var iframeClass = arguments.length > 2 ? arguments[2] : undefined;
4667
4672
  if (!this.container.isExist() || this.isExist()) return;
4668
4673
  var iFrame = document.createElement('iframe');
4669
4674
  iFrame.setAttribute('src', link);
4670
4675
  if (options.title) iFrame.title = options.title;
4676
+ if (iframeClass) iFrame.classList.add(iframeClass);
4671
4677
  this.container.getElement().appendChild(iFrame);
4672
4678
  }
4673
4679
  }, {
4674
4680
  key: "loadFromHtml",
4675
4681
  value: function loadFromHtml(content) {
4676
4682
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
4683
+ var iframeClass = arguments.length > 2 ? arguments[2] : undefined;
4677
4684
  if (!this.container.isExist() || this.isExist()) return;
4678
4685
  var iFrame = document.createElement('iframe');
4679
4686
  iFrame.setAttribute('height', '100%');
4680
4687
  iFrame.setAttribute('width', '100%');
4688
+ if (iframeClass) iFrame.classList.add(iframeClass);
4681
4689
  if (options.title) iFrame.title = options.title;
4682
4690
  var template = "<html><head><style>html, body {margin: 0;} iframe {border: 0; width: 100%}</style><title></title></head><body>{{content}}</body></html>";
4683
4691
  this.container.getElement().appendChild(iFrame);
@@ -5323,9 +5331,9 @@ var Canvas3ds = /*#__PURE__*/function () {
5323
5331
  function load() {
5324
5332
  if (this.token.format === TOKEN_FORMAT.HTML) this.iFrame.loadFromHtml(this.token.content, {
5325
5333
  title: '3d secure authentication'
5326
- });else if (this.token.format === TOKEN_FORMAT.URL) this.iFrame.load(this.token.content, {
5334
+ }, 'threeDSecure-iframe');else if (this.token.format === TOKEN_FORMAT.URL) this.iFrame.load(this.token.content, {
5327
5335
  title: '3d secure authentication'
5328
- });else if (this.token.format === TOKEN_FORMAT.STANDALONE_3DS) this.standalone3dsService.load(this.token.content, {
5336
+ }, 'threeDSecure-iframe');else if (this.token.format === TOKEN_FORMAT.STANDALONE_3DS) this.standalone3dsService.load(this.token.content, {
5329
5337
  title: '3d secure authentication'
5330
5338
  });else console.error('Token contain unsupported payload');
5331
5339
  }
@@ -15305,7 +15313,7 @@ function getVersionInstructions(version) {
15305
15313
  }
15306
15314
  }
15307
15315
 
15308
- var additional = "\n<style>\n #standaloneWidget iframe, #list iframe {\n display: block;\n max-width: 640px;\n min-width: 320px;\n width: 100%;\n border-width: 0;\n }\n .spinner-wrapper {\n position: absolute;\n width: calc(100% + 1px);\n height: calc(100% + 1px);\n top: 0;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 999;\n }\n \n .spinner-wrapper svg {\n position: absolute;\n\n height: 50px;\n width: 50px;\n z-index: 1000;\n }\n \n .spinner-wrapper .background {\n margin: 0 !important;\n background: #f9f9f9;\n color: #f9f9f9;\n word-break: break-all;\n white-space: pre-wrap;\n width: 100%;\n height: 100%;\n }\n \n .spinner-wrapper--hidden {\n display: none;\n }\n #standaloneWidget .paypal-buttons {\n padding-bottom: 12px;\n right: 40px;\n max-width: 290px;\n }\n #standaloneWidget #gpay-button-online-api-id {\n max-width: 311px;\n margin-bottom: 11px;\n right: 11px;\n }\n #standaloneWidget .paydock-apple-container {\n max-width: 300px;\n margin-right: 10px;\n margin-bottom: 10px\n }\n</style>\n<div id=\"spinner\" class=\"spinner-wrapper spinner-wrapper--hidden\">\n <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><radialGradient id='a5' cx='.66' fx='.66' cy='.3125' fy='.3125' gradientTransform='scale(1.5)'><stop offset='0' stop-color='#191919'></stop><stop offset='.3' stop-color='#191919' stop-opacity='.9'></stop><stop offset='.6' stop-color='#191919' stop-opacity='.6'></stop><stop offset='.8' stop-color='#191919' stop-opacity='.3'></stop><stop offset='1' stop-color='#191919' stop-opacity='0'></stop></radialGradient><circle transform-origin='center' fill='none' stroke='url(#a5)' stroke-width='30' stroke-linecap='round' stroke-dasharray='200 1000' stroke-dashoffset='0' cx='100' cy='100' r='70'><animateTransform type='rotate' attributeName='transform' calcMode='spline' dur='1' values='360;0' keyTimes='0;1' keySplines='0 0 1 1' repeatCount='indefinite'></animateTransform></circle><circle transform-origin='center' fill='none' opacity='.2' stroke='#191919' stroke-width='30' stroke-linecap='round' cx='100' cy='100' r='70'></circle></svg>\n <pre class=\"background\"></pre>\n</div>\n";
15316
+ var additional = "\n<style>\n #standaloneWidget iframe[title=\"3d secure authentication\"],\n #standaloneWidget .threeDSecure-iframe {\n height: 420px;\n }\n #standaloneWidget iframe, #list iframe {\n display: block;\n max-width: 640px;\n min-width: 320px;\n width: 100%;\n border-width: 0;\n }\n .spinner-wrapper {\n position: absolute;\n width: calc(100% + 1px);\n height: calc(100% + 1px);\n top: 0;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 999;\n }\n \n .spinner-wrapper svg {\n position: absolute;\n\n height: 50px;\n width: 50px;\n z-index: 1000;\n }\n \n .spinner-wrapper .background {\n margin: 0 !important;\n background: #f9f9f9;\n color: #f9f9f9;\n word-break: break-all;\n white-space: pre-wrap;\n width: 100%;\n height: 100%;\n }\n \n .spinner-wrapper--hidden {\n display: none;\n }\n #standaloneWidget .paypal-buttons {\n padding-bottom: 12px;\n right: 40px;\n max-width: 290px;\n }\n #standaloneWidget #gpay-button-online-api-id {\n max-width: 311px;\n margin-bottom: 11px;\n right: 11px;\n }\n #standaloneWidget .paydock-apple-container {\n max-width: 300px;\n margin-right: 10px;\n margin-bottom: 10px\n }\n</style>\n<div id=\"spinner\" class=\"spinner-wrapper spinner-wrapper--hidden\">\n <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><radialGradient id='a5' cx='.66' fx='.66' cy='.3125' fy='.3125' gradientTransform='scale(1.5)'><stop offset='0' stop-color='#191919'></stop><stop offset='.3' stop-color='#191919' stop-opacity='.9'></stop><stop offset='.6' stop-color='#191919' stop-opacity='.6'></stop><stop offset='.8' stop-color='#191919' stop-opacity='.3'></stop><stop offset='1' stop-color='#191919' stop-opacity='0'></stop></radialGradient><circle transform-origin='center' fill='none' stroke='url(#a5)' stroke-width='30' stroke-linecap='round' stroke-dasharray='200 1000' stroke-dashoffset='0' cx='100' cy='100' r='70'><animateTransform type='rotate' attributeName='transform' calcMode='spline' dur='1' values='360;0' keyTimes='0;1' keySplines='0 0 1 1' repeatCount='indefinite'></animateTransform></circle><circle transform-origin='center' fill='none' opacity='.2' stroke='#191919' stroke-width='30' stroke-linecap='round' cx='100' cy='100' r='70'></circle></svg>\n <pre class=\"background\"></pre>\n</div>\n";
15309
15317
 
15310
15318
  var EVENT$1 = {
15311
15319
  PAYMENT_SUCCESSFUL: "paymentSuccessful",
@@ -16535,7 +16543,7 @@ var PayPalSavePaymentSourceService = /*#__PURE__*/function () {
16535
16543
  _this2.paypal = window.paypal;
16536
16544
  var button = _this2.paypal.Buttons(_extends(_extends({
16537
16545
  createVaultSetupToken: function createVaultSetupToken() {
16538
- return _this2.getSetupToken(_this2.accessToken);
16546
+ return _this2.getSetupToken();
16539
16547
  },
16540
16548
  onApprove: function onApprove(_ref) {
16541
16549
  var vaultSetupToken = _ref.vaultSetupToken;
@@ -16575,11 +16583,10 @@ var PayPalSavePaymentSourceService = /*#__PURE__*/function () {
16575
16583
  }
16576
16584
  }, {
16577
16585
  key: "getSetupToken",
16578
- value: function getSetupToken(accessToken) {
16586
+ value: function getSetupToken() {
16579
16587
  var _this3 = this;
16580
16588
  return this.api.getClientPromise('POST', PAYPAL_SETUP_TOKEN_ROUTE).send({
16581
- gateway_id: this.gatewayId,
16582
- token: accessToken
16589
+ gateway_id: this.gatewayId
16583
16590
  }).then(function (responseSetupToken) {
16584
16591
  return responseSetupToken.setup_token;
16585
16592
  })["catch"](function (error) {
@@ -16626,7 +16633,6 @@ var PayPalSavePaymentSourceService = /*#__PURE__*/function () {
16626
16633
  gateway_id: this.gatewayId
16627
16634
  }).then(function (data) {
16628
16635
  _this5.idToken = data.id_token;
16629
- _this5.accessToken = data.access_token;
16630
16636
  })["catch"](function (error) {
16631
16637
  _this5.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR, _extends({
16632
16638
  error_code: ErrorCodes.ON_GET_ID_TOKEN_ERROR
@@ -661,10 +661,10 @@ declare class IFrame {
661
661
  constructor(container: Container);
662
662
  load(link: string, options?: {
663
663
  title?: string;
664
- }): void;
664
+ }, iframeClass?: string): void;
665
665
  loadFromHtml(content: string, options?: {
666
666
  title?: string;
667
- }): void;
667
+ }, iframeClass?: string): void;
668
668
  remove(): void;
669
669
  show(): void;
670
670
  hide(saveSize?: boolean): void;
@@ -1 +1 @@
1
- {"version":3,"file":"api-base.d.ts","sourceRoot":"","sources":["../../src/api/api-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,GAAG,EAAE,MA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,EAAE,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,GAAG,CAAC;IAkBpF,WAAW,EAAE,aAAa,CAExB;IAEF,WAAW,EAAE,aAAa,CAExB;IAEF,SAAS,CAAC,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,iBAAiB,EAAE,KAAK,GAAG,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM;IAmBxF,SAAS,KAAK,GAAG;;;;MAMhB;CACJ"}
@@ -1,3 +1,3 @@
1
- declare const _default: "\n<style>\n #standaloneWidget iframe, #list iframe {\n display: block;\n max-width: 640px;\n min-width: 320px;\n width: 100%;\n border-width: 0;\n }\n .spinner-wrapper {\n position: absolute;\n width: calc(100% + 1px);\n height: calc(100% + 1px);\n top: 0;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 999;\n }\n \n .spinner-wrapper svg {\n position: absolute;\n\n height: 50px;\n width: 50px;\n z-index: 1000;\n }\n \n .spinner-wrapper .background {\n margin: 0 !important;\n background: #f9f9f9;\n color: #f9f9f9;\n word-break: break-all;\n white-space: pre-wrap;\n width: 100%;\n height: 100%;\n }\n \n .spinner-wrapper--hidden {\n display: none;\n }\n #standaloneWidget .paypal-buttons {\n padding-bottom: 12px;\n right: 40px;\n max-width: 290px;\n }\n #standaloneWidget #gpay-button-online-api-id {\n max-width: 311px;\n margin-bottom: 11px;\n right: 11px;\n }\n #standaloneWidget .paydock-apple-container {\n max-width: 300px;\n margin-right: 10px;\n margin-bottom: 10px\n }\n</style>\n<div id=\"spinner\" class=\"spinner-wrapper spinner-wrapper--hidden\">\n <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><radialGradient id='a5' cx='.66' fx='.66' cy='.3125' fy='.3125' gradientTransform='scale(1.5)'><stop offset='0' stop-color='#191919'></stop><stop offset='.3' stop-color='#191919' stop-opacity='.9'></stop><stop offset='.6' stop-color='#191919' stop-opacity='.6'></stop><stop offset='.8' stop-color='#191919' stop-opacity='.3'></stop><stop offset='1' stop-color='#191919' stop-opacity='0'></stop></radialGradient><circle transform-origin='center' fill='none' stroke='url(#a5)' stroke-width='30' stroke-linecap='round' stroke-dasharray='200 1000' stroke-dashoffset='0' cx='100' cy='100' r='70'><animateTransform type='rotate' attributeName='transform' calcMode='spline' dur='1' values='360;0' keyTimes='0;1' keySplines='0 0 1 1' repeatCount='indefinite'></animateTransform></circle><circle transform-origin='center' fill='none' opacity='.2' stroke='#191919' stroke-width='30' stroke-linecap='round' cx='100' cy='100' r='70'></circle></svg>\n <pre class=\"background\"></pre>\n</div>\n";
1
+ declare const _default: "\n<style>\n #standaloneWidget iframe[title=\"3d secure authentication\"],\n #standaloneWidget .threeDSecure-iframe {\n height: 420px;\n }\n #standaloneWidget iframe, #list iframe {\n display: block;\n max-width: 640px;\n min-width: 320px;\n width: 100%;\n border-width: 0;\n }\n .spinner-wrapper {\n position: absolute;\n width: calc(100% + 1px);\n height: calc(100% + 1px);\n top: 0;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 999;\n }\n \n .spinner-wrapper svg {\n position: absolute;\n\n height: 50px;\n width: 50px;\n z-index: 1000;\n }\n \n .spinner-wrapper .background {\n margin: 0 !important;\n background: #f9f9f9;\n color: #f9f9f9;\n word-break: break-all;\n white-space: pre-wrap;\n width: 100%;\n height: 100%;\n }\n \n .spinner-wrapper--hidden {\n display: none;\n }\n #standaloneWidget .paypal-buttons {\n padding-bottom: 12px;\n right: 40px;\n max-width: 290px;\n }\n #standaloneWidget #gpay-button-online-api-id {\n max-width: 311px;\n margin-bottom: 11px;\n right: 11px;\n }\n #standaloneWidget .paydock-apple-container {\n max-width: 300px;\n margin-right: 10px;\n margin-bottom: 10px\n }\n</style>\n<div id=\"spinner\" class=\"spinner-wrapper spinner-wrapper--hidden\">\n <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><radialGradient id='a5' cx='.66' fx='.66' cy='.3125' fy='.3125' gradientTransform='scale(1.5)'><stop offset='0' stop-color='#191919'></stop><stop offset='.3' stop-color='#191919' stop-opacity='.9'></stop><stop offset='.6' stop-color='#191919' stop-opacity='.6'></stop><stop offset='.8' stop-color='#191919' stop-opacity='.3'></stop><stop offset='1' stop-color='#191919' stop-opacity='0'></stop></radialGradient><circle transform-origin='center' fill='none' stroke='url(#a5)' stroke-width='30' stroke-linecap='round' stroke-dasharray='200 1000' stroke-dashoffset='0' cx='100' cy='100' r='70'><animateTransform type='rotate' attributeName='transform' calcMode='spline' dur='1' values='360;0' keyTimes='0;1' keySplines='0 0 1 1' repeatCount='indefinite'></animateTransform></circle><circle transform-origin='center' fill='none' opacity='.2' stroke='#191919' stroke-width='30' stroke-linecap='round' cx='100' cy='100' r='70'></circle></svg>\n <pre class=\"background\"></pre>\n</div>\n";
2
2
  export default _default;
3
3
  //# sourceMappingURL=additionals.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"additionals.d.ts","sourceRoot":"","sources":["../../../src/checkout/layout-widgets/additionals.ts"],"names":[],"mappings":";AAAA,wBA8DC"}
1
+ {"version":3,"file":"additionals.d.ts","sourceRoot":"","sources":["../../../src/checkout/layout-widgets/additionals.ts"],"names":[],"mappings":";AAAA,wBAkEC"}
@@ -4,10 +4,10 @@ export declare class IFrame {
4
4
  constructor(container: Container);
5
5
  load(link: string, options?: {
6
6
  title?: string;
7
- }): void;
7
+ }, iframeClass?: string): void;
8
8
  loadFromHtml(content: string, options?: {
9
9
  title?: string;
10
- }): void;
10
+ }, iframeClass?: string): void;
11
11
  remove(): void;
12
12
  show(): void;
13
13
  hide(saveSize?: boolean): void;
@@ -1 +1 @@
1
- {"version":3,"file":"iframe.d.ts","sourceRoot":"","sources":["../../src/components/iframe.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAEtC,qBAAa,MAAM;IAEf,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;gBAEnB,SA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CAAC,SAAS;CAOpB"}
@@ -8,7 +8,6 @@ export interface PaypalOAuthTokenBody {
8
8
  }
9
9
  export interface PaypalSetupTokenBody {
10
10
  gateway_id: string;
11
- token: string;
12
11
  }
13
12
  export interface PaypalSetupTokenResponse {
14
13
  setup_token: string;
@@ -1 +1 @@
1
- {"version":3,"file":"paypal-save-payment-source.interfaces.d.ts","sourceRoot":"","sources":["../../src/paypal-save-payment-source/paypal-save-payment-source.interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEzD,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB;AACD,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf;AACD,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;IACvD,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAClC,KAAK,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,QAAQ,GAAG,KAAK,CAAC;IACjD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAA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ED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC;CACzB"}
1
+ {"version":3,"file":"paypal-save-payment-source.interfaces.d.ts","sourceRoot":"","sources":["../../src/paypal-save-payment-source/paypal-save-payment-source.interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEzD,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB;AACD,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;IACvD,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAClC,KAAK,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,QAAQ,GAAG,KAAK,CAAC;IACjD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AACD,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CA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iInternal;
18
18
  protected walletConfig: GetWalletConfigResponse;
19
19
  protected idToken: string;
20
- protected accessToken: string;
21
20
  constructor(publicKey: string, gatewayId: string, eventEmitter: EventEmitter, config?: PayPalSavePaymentSourceWidgetConfig);
22
21
  static fromConfig(publicKey: string, gatewayId: string, eventEmitter: EventEmitter, config?: PayPalSavePaymentSourceWidgetConfig): PayPalSavePaymentSourceService;
23
22
  private getApiAuthType;
@@ -1 +1 @@
1
- {"version":3,"file":"paypal-save-payment-source.service.d.ts","sourceRoot":"","sources":["../../src/paypal-save-payment-source/paypal-save-payment-source.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAiB,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAEL,KAAK,8BAA8B,EAEnC,KAAK,mCAAmC,EAOzC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,EAAE,GAAG,CAAC;KACb;CACF;AAWD,qBAAa,8BAA+B,YAAW,8BAA8B;IAQjF,SAAS,CAAC,SAAS,EAAE,MAAM;IAC3B,SAAS,CAAC,SAAS,EAAE,MAAM;IAC3B,SAAS,CAAC,YAAY,EAAE,YAAY;IACpC,SAAS,CAAC,MAAM,CAAC,EAAE,mCAAmC;IAVxD,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC;IACtB,SAAS,CAAC,GAAG,EAAE,WAAW,CAAC;IAC3B,SAAS,CAAC,YAAY,EAAE,uBAAuB,CAAC;IAChD,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,WAAW,EAAE,MAAM,CAAC;gBAGlB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,YAAY,EAC1B,MAAM,CAAC,EAAE,mCAAmC;IAKxD,MAAM,CAAC,UAAU,CACf,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,YAAY,EAC1B,MAAM,CAAC,EAAE,mCAAmC;IAU9C,OAAO,CAAC,cAAc;IAOf,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAIzC,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI;IAcvC,OAAO,CAAC,sCAAsC;IA4C9C,OAAO,CAAC,6BAA6B;IAIrC,OAAO,CAAC,aAAa;IAsBrB,SAAS,CAAC,yBAAyB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAsB3E,SAAS,CAAC,sBAAsB,CAAC,KAAK,KAAA,GAAG,IAAI;IAO7C,SAAS,CAAC,uBAAuB,IAAI,IAAI;IAIzC,OAAO,CAAC,UAAU;IAmBlB,OAAO,CAAC,eAAe;IAgBvB,OAAO,CAAC,mBAAmB;CAQ5B"}
1
+ {"version":3,"file":"paypal-save-payment-source.service.d.ts","sourceRoot":"","sources":["../../src/paypal-save-payment-source/paypal-save-payment-source.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAiB,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAEL,KAAK,8BAA8B,EAEnC,KAAK,mCAAmC,EAOzC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,EAAE,GAAG,CAAC;KACb;CACF;AAWD,qBAAa,8BAA+B,YAAW,8BAA8B;IAOjF,SAAS,CAAC,SAAS,EAAE,MAAM;IAC3B,SAAS,CAAC,SAAS,EAAE,MAAM;IAC3B,SAAS,CAAC,YAAY,EAAE,YAAY;IACpC,SAAS,CAAC,MAAM,CAAC,EAAE,mCAAmC;IATxD,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC;IACtB,SAAS,CAAC,GAAG,EAAE,WAAW,CAAC;IAC3B,SAAS,CAAC,YAAY,EAAE,uBAAuB,CAAC;IAChD,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC;gBAGd,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,YAAY,EAC1B,MAAM,CAAC,EAAE,mCAAmC;IAKxD,MAAM,CAAC,UAAU,CACf,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,YAAY,EAC1B,MAAM,CAAC,EAAE,mCAAmC;IAU9C,OAAO,CAAC,cAAc;IAOf,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAIzC,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI;IAcvC,OAAO,CAAC,sCAAsC;IA4C9C,OAAO,CAAC,6BAA6B;IAIrC,OAAO,CAAC,aAAa;IAqBrB,SAAS,CAAC,yBAAyB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAsB3E,SAAS,CAAC,sBAAsB,CAAC,KAAK,KAAA,GAAG,IAAI;IAO7C,SAAS,CAAC,uBAAuB,IAAI,IAAI;IAIzC,OAAO,CAAC,UAAU;IAkBlB,OAAO,CAAC,eAAe;IAgBvB,OAAO,CAAC,mBAAmB;CAQ5B"}
@@ -893,7 +893,7 @@
893
893
  version: 'x-sdk-version',
894
894
  type: 'x-sdk-type'
895
895
  });
896
- SDK._version = 'v1.116.2';
896
+ SDK._version = 'v1.117.0-beta';
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: '1386157152',
3964
- applicationId: '1386157152',
3963
+ agentId: '1386157150',
3964
+ applicationId: '1386157150',
3965
3965
  licenseKey: '4848a32285',
3966
3966
  trustKey: '974691'
3967
3967
  };
@@ -4225,6 +4225,10 @@
4225
4225
  request.onreadystatechange = function () {
4226
4226
  if (_this2.stoppedPooling) return;
4227
4227
  if (request.readyState === 4) {
4228
+ if (request.status === 403) {
4229
+ _this2.stoppedPooling = true;
4230
+ return;
4231
+ }
4228
4232
  if (request.status === 200 || request.status === 201) {
4229
4233
  var data = JSON.parse(request.responseText);
4230
4234
  if (SessionHelper.sessionId !== data.resource.data.intent_id) {
@@ -4668,20 +4672,24 @@
4668
4672
  key: "load",
4669
4673
  value: function load(link) {
4670
4674
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
4675
+ var iframeClass = arguments.length > 2 ? arguments[2] : undefined;
4671
4676
  if (!this.container.isExist() || this.isExist()) return;
4672
4677
  var iFrame = document.createElement('iframe');
4673
4678
  iFrame.setAttribute('src', link);
4674
4679
  if (options.title) iFrame.title = options.title;
4680
+ if (iframeClass) iFrame.classList.add(iframeClass);
4675
4681
  this.container.getElement().appendChild(iFrame);
4676
4682
  }
4677
4683
  }, {
4678
4684
  key: "loadFromHtml",
4679
4685
  value: function loadFromHtml(content) {
4680
4686
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
4687
+ var iframeClass = arguments.length > 2 ? arguments[2] : undefined;
4681
4688
  if (!this.container.isExist() || this.isExist()) return;
4682
4689
  var iFrame = document.createElement('iframe');
4683
4690
  iFrame.setAttribute('height', '100%');
4684
4691
  iFrame.setAttribute('width', '100%');
4692
+ if (iframeClass) iFrame.classList.add(iframeClass);
4685
4693
  if (options.title) iFrame.title = options.title;
4686
4694
  var template = "<html><head><style>html, body {margin: 0;} iframe {border: 0; width: 100%}</style><title></title></head><body>{{content}}</body></html>";
4687
4695
  this.container.getElement().appendChild(iFrame);
@@ -5327,9 +5335,9 @@
5327
5335
  function load() {
5328
5336
  if (this.token.format === TOKEN_FORMAT.HTML) this.iFrame.loadFromHtml(this.token.content, {
5329
5337
  title: '3d secure authentication'
5330
- });else if (this.token.format === TOKEN_FORMAT.URL) this.iFrame.load(this.token.content, {
5338
+ }, 'threeDSecure-iframe');else if (this.token.format === TOKEN_FORMAT.URL) this.iFrame.load(this.token.content, {
5331
5339
  title: '3d secure authentication'
5332
- });else if (this.token.format === TOKEN_FORMAT.STANDALONE_3DS) this.standalone3dsService.load(this.token.content, {
5340
+ }, 'threeDSecure-iframe');else if (this.token.format === TOKEN_FORMAT.STANDALONE_3DS) this.standalone3dsService.load(this.token.content, {
5333
5341
  title: '3d secure authentication'
5334
5342
  });else console.error('Token contain unsupported payload');
5335
5343
  }
@@ -15309,7 +15317,7 @@
15309
15317
  }
15310
15318
  }
15311
15319
 
15312
- var additional = "\n<style>\n #standaloneWidget iframe, #list iframe {\n display: block;\n max-width: 640px;\n min-width: 320px;\n width: 100%;\n border-width: 0;\n }\n .spinner-wrapper {\n position: absolute;\n width: calc(100% + 1px);\n height: calc(100% + 1px);\n top: 0;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 999;\n }\n \n .spinner-wrapper svg {\n position: absolute;\n\n height: 50px;\n width: 50px;\n z-index: 1000;\n }\n \n .spinner-wrapper .background {\n margin: 0 !important;\n background: #f9f9f9;\n color: #f9f9f9;\n word-break: break-all;\n white-space: pre-wrap;\n width: 100%;\n height: 100%;\n }\n \n .spinner-wrapper--hidden {\n display: none;\n }\n #standaloneWidget .paypal-buttons {\n padding-bottom: 12px;\n right: 40px;\n max-width: 290px;\n }\n #standaloneWidget #gpay-button-online-api-id {\n max-width: 311px;\n margin-bottom: 11px;\n right: 11px;\n }\n #standaloneWidget .paydock-apple-container {\n max-width: 300px;\n margin-right: 10px;\n margin-bottom: 10px\n }\n</style>\n<div id=\"spinner\" class=\"spinner-wrapper spinner-wrapper--hidden\">\n <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><radialGradient id='a5' cx='.66' fx='.66' cy='.3125' fy='.3125' gradientTransform='scale(1.5)'><stop offset='0' stop-color='#191919'></stop><stop offset='.3' stop-color='#191919' stop-opacity='.9'></stop><stop offset='.6' stop-color='#191919' stop-opacity='.6'></stop><stop offset='.8' stop-color='#191919' stop-opacity='.3'></stop><stop offset='1' stop-color='#191919' stop-opacity='0'></stop></radialGradient><circle transform-origin='center' fill='none' stroke='url(#a5)' stroke-width='30' stroke-linecap='round' stroke-dasharray='200 1000' stroke-dashoffset='0' cx='100' cy='100' r='70'><animateTransform type='rotate' attributeName='transform' calcMode='spline' dur='1' values='360;0' keyTimes='0;1' keySplines='0 0 1 1' repeatCount='indefinite'></animateTransform></circle><circle transform-origin='center' fill='none' opacity='.2' stroke='#191919' stroke-width='30' stroke-linecap='round' cx='100' cy='100' r='70'></circle></svg>\n <pre class=\"background\"></pre>\n</div>\n";
15320
+ var additional = "\n<style>\n #standaloneWidget iframe[title=\"3d secure authentication\"],\n #standaloneWidget .threeDSecure-iframe {\n height: 420px;\n }\n #standaloneWidget iframe, #list iframe {\n display: block;\n max-width: 640px;\n min-width: 320px;\n width: 100%;\n border-width: 0;\n }\n .spinner-wrapper {\n position: absolute;\n width: calc(100% + 1px);\n height: calc(100% + 1px);\n top: 0;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 999;\n }\n \n .spinner-wrapper svg {\n position: absolute;\n\n height: 50px;\n width: 50px;\n z-index: 1000;\n }\n \n .spinner-wrapper .background {\n margin: 0 !important;\n background: #f9f9f9;\n color: #f9f9f9;\n word-break: break-all;\n white-space: pre-wrap;\n width: 100%;\n height: 100%;\n }\n \n .spinner-wrapper--hidden {\n display: none;\n }\n #standaloneWidget .paypal-buttons {\n padding-bottom: 12px;\n right: 40px;\n max-width: 290px;\n }\n #standaloneWidget #gpay-button-online-api-id {\n max-width: 311px;\n margin-bottom: 11px;\n right: 11px;\n }\n #standaloneWidget .paydock-apple-container {\n max-width: 300px;\n margin-right: 10px;\n margin-bottom: 10px\n }\n</style>\n<div id=\"spinner\" class=\"spinner-wrapper spinner-wrapper--hidden\">\n <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><radialGradient id='a5' cx='.66' fx='.66' cy='.3125' fy='.3125' gradientTransform='scale(1.5)'><stop offset='0' stop-color='#191919'></stop><stop offset='.3' stop-color='#191919' stop-opacity='.9'></stop><stop offset='.6' stop-color='#191919' stop-opacity='.6'></stop><stop offset='.8' stop-color='#191919' stop-opacity='.3'></stop><stop offset='1' stop-color='#191919' stop-opacity='0'></stop></radialGradient><circle transform-origin='center' fill='none' stroke='url(#a5)' stroke-width='30' stroke-linecap='round' stroke-dasharray='200 1000' stroke-dashoffset='0' cx='100' cy='100' r='70'><animateTransform type='rotate' attributeName='transform' calcMode='spline' dur='1' values='360;0' keyTimes='0;1' keySplines='0 0 1 1' repeatCount='indefinite'></animateTransform></circle><circle transform-origin='center' fill='none' opacity='.2' stroke='#191919' stroke-width='30' stroke-linecap='round' cx='100' cy='100' r='70'></circle></svg>\n <pre class=\"background\"></pre>\n</div>\n";
15313
15321
 
15314
15322
  var EVENT$1 = {
15315
15323
  PAYMENT_SUCCESSFUL: "paymentSuccessful",
@@ -16539,7 +16547,7 @@
16539
16547
  _this2.paypal = window.paypal;
16540
16548
  var button = _this2.paypal.Buttons(_extends(_extends({
16541
16549
  createVaultSetupToken: function createVaultSetupToken() {
16542
- return _this2.getSetupToken(_this2.accessToken);
16550
+ return _this2.getSetupToken();
16543
16551
  },
16544
16552
  onApprove: function onApprove(_ref) {
16545
16553
  var vaultSetupToken = _ref.vaultSetupToken;
@@ -16579,11 +16587,10 @@
16579
16587
  }
16580
16588
  }, {
16581
16589
  key: "getSetupToken",
16582
- value: function getSetupToken(accessToken) {
16590
+ value: function getSetupToken() {
16583
16591
  var _this3 = this;
16584
16592
  return this.api.getClientPromise('POST', PAYPAL_SETUP_TOKEN_ROUTE).send({
16585
- gateway_id: this.gatewayId,
16586
- token: accessToken
16593
+ gateway_id: this.gatewayId
16587
16594
  }).then(function (responseSetupToken) {
16588
16595
  return responseSetupToken.setup_token;
16589
16596
  })["catch"](function (error) {
@@ -16630,7 +16637,6 @@
16630
16637
  gateway_id: this.gatewayId
16631
16638
  }).then(function (data) {
16632
16639
  _this5.idToken = data.id_token;
16633
- _this5.accessToken = data.access_token;
16634
16640
  })["catch"](function (error) {
16635
16641
  _this5.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR, _extends({
16636
16642
  error_code: ErrorCodes.ON_GET_ID_TOKEN_ERROR
@@ -661,10 +661,10 @@ declare class IFrame {
661
661
  constructor(container: Container);
662
662
  load(link: string, options?: {
663
663
  title?: string;
664
- }): void;
664
+ }, iframeClass?: string): void;
665
665
  loadFromHtml(content: string, options?: {
666
666
  title?: string;
667
- }): void;
667
+ }, iframeClass?: string): void;
668
668
  remove(): void;
669
669
  show(): void;
670
670
  hide(saveSize?: boolean): void;
@@ -661,10 +661,10 @@ declare class IFrame {
661
661
  constructor(container: Container);
662
662
  load(link: string, options?: {
663
663
  title?: string;
664
- }): void;
664
+ }, iframeClass?: string): void;
665
665
  loadFromHtml(content: string, options?: {
666
666
  title?: string;
667
- }): void;
667
+ }, iframeClass?: string): void;
668
668
  remove(): void;
669
669
  show(): void;
670
670
  hide(saveSize?: boolean): void;