@payfurl/client 4.6.21 → 4.6.22

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.
Files changed (32) hide show
  1. package/dist/sdk/{CxPayThreeDsProvider-ysOA5bLR.js → CxPayThreeDsProvider-DW5-rmwO.js} +1 -1
  2. package/dist/sdk/{DefaultThreeDsProvider-Be6gfYn_.js → DefaultThreeDsProvider-g71qaHoD.js} +1 -1
  3. package/dist/sdk/{EcentricThreeDsProvider-CKLcz5as.js → EcentricThreeDsProvider-DTJmqml3.js} +2 -2
  4. package/dist/sdk/{EpnaThreeDsProvider-Krzveb57.js → EpnaThreeDsProvider-DPIlaWq5.js} +1 -1
  5. package/dist/sdk/{FlashBancThreeDsProvider-CJLu0sTI.js → FlashBancThreeDsProvider-BpO5zxSu.js} +1 -1
  6. package/dist/sdk/{GPaymentsThreeDsProvider-CtQlgihk.js → GPaymentsThreeDsProvider-Uj-KdLuY.js} +2 -2
  7. package/dist/sdk/{MetricsGlobalThreeDsProvider-TgpG4rsv.js → MetricsGlobalThreeDsProvider-DfQkb-L7.js} +2 -2
  8. package/dist/sdk/{NmiThreeDsProvider-CSDa8FZu.js → NmiThreeDsProvider-Co1U2FbM.js} +1 -1
  9. package/dist/sdk/{NuveiThreeDsProvider-C51-thjW.js → NuveiThreeDsProvider-CE7Q7XRi.js} +2 -2
  10. package/dist/sdk/{PayGLocalThreeDsProvider-BgjSU-5J.js → PayGLocalThreeDsProvider-CSHV7ncX.js} +2 -2
  11. package/dist/sdk/PayWayAppleButton-oQN--UTw.js +179 -0
  12. package/dist/sdk/{PayabliThreeDsProvider-DLe5DA9v.js → PayabliThreeDsProvider-rZOZnzpg.js} +1 -1
  13. package/dist/sdk/{SkyBankThreeDsProvider-C00abS69.js → SkyBankThreeDsProvider-Dfkz0VY-.js} +1 -1
  14. package/dist/sdk/{ThreeDsProvider.interface-BqrnU_2p.js → ThreeDsProvider.interface-BABwfVIq.js} +4697 -4605
  15. package/dist/sdk/{cxpay-Cz4y2geS.js → cxpay-BceAQYZX.js} +1 -1
  16. package/dist/sdk/{default-CMUCo-dm.js → default-BdIfVoJM.js} +1 -1
  17. package/dist/sdk/{ecentric-BKnZ4vde.js → ecentric-BZLjBoWL.js} +1 -1
  18. package/dist/sdk/{epna-CNfQtVtP.js → epna-Ca-UF1RB.js} +1 -1
  19. package/dist/sdk/{flashbanc-DXa7kG4z.js → flashbanc-lRqJlfeQ.js} +1 -1
  20. package/dist/sdk/{gpayments-Ck3Izfmg.js → gpayments-DLKNKsyO.js} +1 -1
  21. package/dist/sdk/{metrics_global-DjHVWiDw.js → metrics_global-9qTq_V0Z.js} +1 -1
  22. package/dist/sdk/{nmi-DHtVpDhq.js → nmi-CDcLhbrU.js} +1 -1
  23. package/dist/sdk/{nuvei-CoZAS9EN.js → nuvei-C4zgJ-nu.js} +1 -1
  24. package/dist/sdk/{payabli-CPvAQMj1.js → payabli-BbSszo8x.js} +1 -1
  25. package/dist/sdk/payfurl.es.js +1 -1
  26. package/dist/sdk/payfurl.umd.js +13 -13
  27. package/dist/sdk/{payglocal-C6yFYoGo.js → payglocal-D2L0R5by.js} +1 -1
  28. package/dist/sdk/{payway_rest-UZu9CKxh.js → payway_rest-DwCkH5ss.js} +1 -1
  29. package/dist/sdk/{skybank-BCBwKCBm.js → skybank-BXzDLPyy.js} +1 -1
  30. package/dist/sdk/style.css +1 -1
  31. package/package.json +1 -1
  32. package/dist/sdk/PayWayAppleButton-CAgtQL1n.js +0 -159
@@ -1,4 +1,4 @@
1
- import { PayGLocalThreeDsProvider as a } from "./PayGLocalThreeDsProvider-BgjSU-5J.js";
1
+ import { PayGLocalThreeDsProvider as a } from "./PayGLocalThreeDsProvider-CSHV7ncX.js";
2
2
  function l(r, e, o) {
3
3
  return new a(r, e, o);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { PayWayAppleButton as p } from "./PayWayAppleButton-CAgtQL1n.js";
1
+ import { PayWayAppleButton as p } from "./PayWayAppleButton-oQN--UTw.js";
2
2
  function y(t, a, e, r, n, o) {
3
3
  return new p(t, a, e, r, n, o);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { SkyBankThreeDsProvider as o } from "./SkyBankThreeDsProvider-C00abS69.js";
1
+ import { SkyBankThreeDsProvider as o } from "./SkyBankThreeDsProvider-Dfkz0VY-.js";
2
2
  function a(r, e, n) {
3
3
  return new o(r, e, n);
4
4
  }
@@ -1 +1 @@
1
- svg#paypal[data-v-2b840669]{--size: 30px;width:var(--size);height:var(--size)}svg[data-v-6a1e8b23]{--size: 30px;width:var(--size);height:var(--size)}svg[data-v-f87e02ce]{--size: 30px;width:var(--size);height:var(--size)}svg#payto-icon[data-v-0b2d8aa0]{--size: 30px;width:var(--size);height:var(--size)}.payfurl-sdk-combined-container input[type=radio][data-v-240dc514]{height:auto;min-width:auto}.payfurl-sdk-combined-container[data-v-240dc514]{max-width:100%;width:fit-content;display:flex;flex-direction:column;padding:15px;border:var(--border);border-radius:5px}.payfurl-sdk-combined-tab[data-v-240dc514]{width:auto;height:52px;padding:0 10px;display:flex;align-items:center;justify-items:center;cursor:pointer;background-color:#fff;color:var(--color-text);border-top:1px solid var(--border-color)}.payfurl-sdk-combined-tab[data-v-240dc514]:first-child{border-top:0}.payfurl-sdk-combined-tab .combined-tab-title[data-v-240dc514]{width:fit-content;height:fit-content;display:flex;flex-direction:column;margin-right:50px}.payfurl-sdk-combined-tab .combined-tab-title .combined-tab-name[data-v-240dc514]{font-weight:700}.payfurl-sdk-combined-tab .combined-tab-title .combined-tab-description[data-v-240dc514]{color:var(--color-text-light);font-size:.8em}.payfurl-sdk-combined-tab>svg[data-v-240dc514],.payfurl-sdk-combined-tab>img[data-v-240dc514]{margin-left:auto}.payfurl-sdk-combined-tab>input[type=radio][data-v-240dc514]{margin-right:20px}.payfurl-sdk-container-component[data-v-240dc514]{min-height:50px;padding:0 45px}.payfurl-sdk-combined-container[data-v-240dc514]{margin-bottom:20px}@media screen and (max-width: 400px){.payfurl-sdk-container-component[data-v-240dc514]{min-height:50px;padding:0}}.message[data-v-ae4be0f9]{color:var(--color-error);background:transparent;font-size:20px;font-weight:700;margin-bottom:20px}.message[data-v-6a4e1608]{color:var(--color-success);background:transparent;font-size:20px;font-weight:700;margin-bottom:20px}.masked[data-v-16bb7d59]{height:100vh;width:100vw;background-color:#0009;z-index:999999;position:fixed;top:0;left:0}.lds-spinner[data-v-16bb7d59]{--spinner-size: 50px;--spinner-size2: 25px;--spinner-size3: 14px;--spinner-width: 3px;--spinner-left: 23px;display:inline-block;position:absolute;width:var(--spinner-size);height:var(--spinner-size);left:calc(50vw - var(--spinner-size2)/2);top:calc(50vh - var(--spinner-size2)/2)}.lds-spinner.single[data-v-16bb7d59]{--spinner-size: 50px;--spinner-size2: 25px;--spinner-size3: 14px;--spinner-width: 3px;--spinner-left: 23px;display:inline-block;position:relative;width:var(--spinner-size);height:var(--spinner-size);left:calc(50% - var(--spinner-size2)/2);top:0}.message[data-v-16bb7d59]{text-align:center;position:absolute;width:100vw;top:calc(50vh - 75px);color:#fff;font-size:2em}.lds-spinner div[data-v-16bb7d59]{transform-origin:var(--spinner-size2) var(--spinner-size2);animation:lds-spinner-16bb7d59 1.2s linear infinite}.lds-spinner div[data-v-16bb7d59]:after{content:" ";display:block;position:absolute;top:3px;left:var(--spinner-left);width:var(--spinner-width);height:var(--spinner-size3);border-radius:20%;background:#bcdff1}.lds-spinner div[data-v-16bb7d59]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-16bb7d59]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-16bb7d59]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-16bb7d59]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-16bb7d59]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-16bb7d59]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-16bb7d59]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-16bb7d59]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-16bb7d59]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-16bb7d59]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-16bb7d59]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-16bb7d59]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-16bb7d59{0%{opacity:1}to{opacity:0}}iframe#payfurl-card-iframe{border:none;overflow:hidden;width:100%;height:240px}div#payfurl-payto-form[data-v-aa16d8ba]{padding-bottom:20px}.small[data-v-aa16d8ba]{font-size:.8em}div#payfurl-payto-agreement[data-v-f06289bf]{padding-bottom:20px}.message[data-v-f06289bf]{color:var(--color-text);background:transparent;font-size:20px;font-weight:700;margin-bottom:20px}svg[data-v-d7e8386b]{fill:#000;stroke:transparent;width:20px;height:20px}.modal-mask[data-v-2b2c8fc7]{--color-hr: #ddd;align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100vw;height:100vh;background-color:#000c;transition:opacity .3s ease}.modal-mask .modal-wrapper[data-v-2b2c8fc7]{max-height:calc(100vh - 20px);margin:30px auto auto}.modal-mask .modal-wrapper .modal-content[data-v-2b2c8fc7]{position:relative;background-color:#fff;display:flex;flex-direction:column;min-width:min(450px,90vw);max-height:calc(100vh - 60px)}.modal-mask .modal-wrapper .modal-content .modal-header[data-v-2b2c8fc7],.modal-mask .modal-wrapper .modal-content .modal-footer[data-v-2b2c8fc7]{border:none;padding:25px 35px}.modal-mask .modal-wrapper .modal-content .modal-header[data-v-2b2c8fc7]{border-bottom:1px solid var(--color-hr)}.modal-mask .modal-wrapper .modal-content .modal-footer[data-v-2b2c8fc7]{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--color-hr)}.modal-mask .modal-wrapper .modal-content .modal-body[data-v-2b2c8fc7]{flex:1;overflow-y:auto;padding:0;position:relative}.modal-mask .modal-wrapper .modal-content .main-title[data-v-2b2c8fc7]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:20px;color:#000;padding-right:35px}.modal-mask .modal-wrapper .modal-content .close-icon[data-v-2b2c8fc7]{position:absolute;top:29px;right:27px;cursor:pointer}.modal-mask .modal-wrapper.small[data-v-2b2c8fc7]{margin:20% auto auto}.modal-mask .modal-wrapper.small .modal-content .modal-header[data-v-2b2c8fc7],.modal-mask .modal-wrapper.small .modal-content .modal-footer[data-v-2b2c8fc7]{border:none;padding:15px}.modal-mask .modal-wrapper.small .modal-content .modal-body[data-v-2b2c8fc7]{padding:15px 25px 25px}.modal-mask .modal-wrapper.small .modal-content .close-icon[data-v-2b2c8fc7]{top:19px}@media (max-height: 460px){.modal-mask .modal-wrapper[data-v-2b2c8fc7]{max-height:none;margin:auto}.modal-mask .modal-wrapper .modal-content[data-v-2b2c8fc7]{position:relative;background-color:#fff;overflow-y:auto;display:block}.modal-mask .modal-wrapper .modal-content .modal-header[data-v-2b2c8fc7],.modal-mask .modal-wrapper .modal-content .modal-footer[data-v-2b2c8fc7]{height:90px}.modal-mask .modal-wrapper .modal-content .modal-header[data-v-2b2c8fc7]{position:fixed;width:465px;background-color:#fff;z-index:9998}.modal-mask .modal-wrapper .modal-content .modal-body[data-v-2b2c8fc7]{max-height:none;margin-top:90px;overflow-y:visible}}iframe[data-v-5d26ad8f]{width:100%;height:calc(100% - 10px);border:0;overflow:hidden}div.payfurl-checkout-form[data-v-83de843a]{padding-bottom:20px;position:relative}button[data-v-83de843a]{width:100%;height:40px;border:0;border-radius:4px;background-color:#459ad8;color:#fff;text-align:center;font-family:Avenir,Helvetica,Arial,sans-serif;font-size:1.1em;font-weight:400;cursor:pointer}svg[data-v-7d3fe743]{--size: 30px;width:var(--size);height:var(--size)}.click2pay-logo[data-v-cb006d2b]{width:max-content}.click2pay-logo img[data-v-cb006d2b]{height:20px;margin-right:5px;vertical-align:middle}.click2pay-logo img[data-v-cb006d2b]:first-child{margin-right:10px}.payfurl-form[data-v-693ba623]{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--color-text);font-size:1em;font-weight:400;line-height:1.5;background-color:var(--background-color);box-sizing:border-box}.payfurl-form[data-v-693ba623] *,.payfurl-form[data-v-693ba623] *:before,.payfurl-form[data-v-693ba623] *:after{box-sizing:inherit}.payfurl-form[data-v-693ba623] *:focus{outline:none}.payfurl-form label[data-v-693ba623]{font-size:.8em;font-weight:700}.payfurl-form input[data-v-693ba623]:not([type=checkbox]):not([type=radio]){-webkit-appearance:none}.payfurl-form input[data-v-693ba623]:not([type=checkbox]):not([type=radio]),.payfurl-form select[data-v-693ba623]{max-width:100%;width:100%;border:var(--border);border-radius:4px;box-shadow:inset 0 .0625em .125em #0a0a0a0d;background-color:#fff;color:var(--color-input-text);align-items:center;font-size:1rem;height:2.5em;line-height:1.5;padding:calc(.5em - 1px) calc(.75em - 1px);position:relative;margin:0}.payfurl-form input[data-v-693ba623]:hover,.payfurl-form select[data-v-693ba623]:hover{border-color:var(--border-hover)}.payfurl-form[data-v-693ba623] ::placeholder{color:#30313d}.payfurl-form[data-v-693ba623] ::-webkit-input-placeholder{color:#3b3b3b4d}.payfurl-form[data-v-693ba623] ::-moz-placeholder{color:#3b3b3b4d}.payfurl-form[data-v-693ba623] :-ms-input-placeholder{color:#3b3b3b4d}.payfurl-form[data-v-693ba623] :-moz-placeholder{color:#3b3b3b4d}.payfurl-form .error[data-v-693ba623]{font-size:1.2em;color:var(--color-error)}.payfurl-form .success[data-v-693ba623]{font-size:1.2em;color:var(--color-success)}.payfurl-form .info-message[data-v-693ba623]{font-size:.8em;color:var(--color-text)}.payfurl-form .group[data-v-693ba623]{grid-template-columns:repeat(2,minmax(0,1fr));display:grid;gap:10px}.payfurl-form .container-form[data-v-693ba623]{position:relative;width:300px;max-width:100%}.payfurl-form .container-form .text-big[data-v-693ba623]{font-size:1.25em}.payfurl-form .container-form .text-normal[data-v-693ba623]{font-size:1em}.payfurl-form button[data-v-693ba623]{--color-text: #000;--color-text-light: #594f51;--color-text-background: rgba(15, 135, 201, .1);--input-border: #dbdbdb;--input-border-hover: #b5b5b5;display:flex;align-items:center;color:var(--color-text-light);border:1px solid var(--input-border);transition:all .5s ease;transition-property:color,border;white-space:nowrap;border-radius:5px}.payfurl-form button[data-v-693ba623]:hover{border:1px solid var(--input-border-hover)}.payfurl-form button:hover svg[data-v-693ba623]{fill:#000}.payfurl-form button svg[data-v-693ba623]{margin-right:5px}.payfurl-form[data-v-693ba623]{padding:20px}button[data-v-693ba623]{padding:7px 20px}.payfurl-form .container-form[data-v-693ba623]{width:100%}.payfurl-form .container-form label[data-v-693ba623],.payfurl-form .container-form input[data-v-693ba623]{width:100%;padding-left:10px}.payfurl-form.payfurl-form-footer[data-v-693ba623]{padding:0;display:flex;gap:10px}.payment-method-info[data-v-7894e1cd]{display:flex;align-items:center;gap:10px;cursor:pointer;height:40px}.payment-method-info img[data-v-7894e1cd]{margin-left:0;flex:min-content;height:40px;max-width:50px}.payment-method-info .payment-method-details[data-v-7894e1cd]{flex:100%}.saved-payment-methods .payment-method-info .payment-method-details .payment-method-details-name[data-v-7894e1cd]{white-space:nowrap}.saved-payment-methods .payment-method-info .payment-method-details div[data-v-7894e1cd]:first-child{font-weight:700}a.black[data-v-b36fdb09]{color:#000;text-decoration:underline;font-size:.8em}a.blue[data-v-b36fdb09]{color:#00f;text-decoration:none;font-size:1em;margin-top:10px}.saved-payment-methods .title[data-v-b36fdb09]{margin-top:10px;font-weight:700}.saved-payment-methods[data-v-b36fdb09]{display:flex;flex-direction:column;max-width:100vw;width:max-content;gap:10px;margin:20px 0}.saved-payment-methods .payment-method-container[data-v-b36fdb09]{padding:5px;margin:2px;display:flex;gap:20px;flex-wrap:nowrap}.saved-payment-methods .payment-method-container.error[data-v-b36fdb09]{flex-wrap:wrap;color:initial}.saved-payment-methods .payment-method-container[data-v-b36fdb09]:hover{background-color:#f0f0f0}.error[data-v-b36fdb09]{flex-basis:100%;margin:0;padding:0;color:var(--color-error)}iframe[data-v-ac351494]{width:250px;height:400px;border:none;overflow:hidden}.mask[data-v-ac351494]{align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100vw;height:100vh;background-color:#000c;transition:opacity .3s ease}.wrapper[data-v-ac351494]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-ac351494]{position:relative;width:300px;max-width:100%;background:#fff;display:flex;justify-content:center;align-items:center}svg[data-v-ac351494]{cursor:pointer;position:absolute;right:5px;top:5px}.mask[data-v-8a0b6dcb]{align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100vw;height:100vh;background-color:#000c;transition:opacity .3s ease}.wrapper[data-v-8a0b6dcb]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-8a0b6dcb]{position:relative;width:450px;height:450px;max-width:100%;max-height:100%;background:#fff;display:flex;justify-content:center;align-items:center}svg[data-v-8a0b6dcb]{cursor:pointer;position:absolute;right:5px;top:5px}iframe[data-v-8d26953f]{width:650px;height:400px;border:none;overflow:hidden}.mask[data-v-8d26953f]{align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100vw;height:100vh;background-color:#000c;transition:opacity .3s ease}.wrapper[data-v-8d26953f]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-8d26953f]{position:relative;width:700px;background:#fff;display:flex;justify-content:center;align-items:center}svg[data-v-8d26953f]{cursor:pointer;position:absolute;right:5px;top:5px}iframe[data-v-9b0ef3a8]{border:none;overflow:hidden}.mask[data-v-9b0ef3a8]{align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100vw;height:100vh;background-color:#000c;transition:opacity .3s ease}.wrapper[data-v-9b0ef3a8]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-9b0ef3a8]{position:relative;width:100vw;background:#fff;display:flex;justify-content:center;align-items:center}svg[data-v-9b0ef3a8]{cursor:pointer;position:absolute;right:5px;top:5px}iframe[data-v-6293d147]{width:650px;height:400px;border:none;overflow:hidden}.mask[data-v-6293d147]{align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100vw;height:100vh;background-color:#000c;transition:opacity .3s ease}.wrapper[data-v-6293d147]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-6293d147]{position:relative;width:700px;background:#fff;display:flex;justify-content:center;align-items:center}svg[data-v-6293d147]{cursor:pointer;position:absolute;right:5px;top:5px}.payfurl-form{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--color-text);font-size:1em;font-weight:400;line-height:1.5;background-color:var(--background-color);box-sizing:border-box}.payfurl-form *,.payfurl-form *:before,.payfurl-form *:after{box-sizing:inherit}.payfurl-form *:focus{outline:none}.payfurl-form label{font-size:.8em;font-weight:700}.payfurl-form input:not([type=checkbox]):not([type=radio]){-webkit-appearance:none}.payfurl-form input:not([type=checkbox]):not([type=radio]),.payfurl-form select{max-width:100%;width:100%;border:var(--border);border-radius:4px;box-shadow:inset 0 .0625em .125em #0a0a0a0d;background-color:#fff;color:var(--color-input-text);align-items:center;font-size:1rem;height:2.5em;line-height:1.5;padding:calc(.5em - 1px) calc(.75em - 1px);position:relative;margin:0}.payfurl-form input:hover,.payfurl-form select:hover{border-color:var(--border-hover)}.payfurl-form ::placeholder{color:#30313d}.payfurl-form ::-webkit-input-placeholder{color:#3b3b3b4d}.payfurl-form ::-moz-placeholder{color:#3b3b3b4d}.payfurl-form :-ms-input-placeholder{color:#3b3b3b4d}.payfurl-form :-moz-placeholder{color:#3b3b3b4d}.payfurl-form .error{font-size:1.2em;color:var(--color-error)}.payfurl-form .success{font-size:1.2em;color:var(--color-success)}.payfurl-form .info-message{font-size:.8em;color:var(--color-text)}.payfurl-form .group{grid-template-columns:repeat(2,minmax(0,1fr));display:grid;gap:10px}.payfurl-form .container-form{position:relative;width:300px;max-width:100%}.payfurl-form .container-form .text-big{font-size:1.25em}.payfurl-form .container-form .text-normal{font-size:1em}.payfurl-form button{--color-text: #000;--color-text-light: #594f51;--color-text-background: rgba(15, 135, 201, .1);--input-border: #dbdbdb;--input-border-hover: #b5b5b5;display:flex;align-items:center;color:var(--color-text-light);border:1px solid var(--input-border);transition:all .5s ease;transition-property:color,border;white-space:nowrap;border-radius:5px}.payfurl-form button:hover{border:1px solid var(--input-border-hover)}.payfurl-form button:hover svg{fill:#000}.payfurl-form button svg{margin-right:5px}body,body.common{--background-color: white;--color-text: #4a4a4a;--color-text-light: #777777;--color-input-text: #4a4a4a;--border: 1px solid #dbdbdb;--border-color: #dbdbdb;--border-hover: 1px solid #363636;--color-error: red;--color-success: #48b608}body.dark{--background-color: black;--color-text: white;--color-input-text: #4a4a4a;--border: 1px solid #b4e1ee;--border-hover: 1px solid #363636;--color-error: red;--color-success: #48b608}.modal-mask[data-v-6f042298]{--color-hr: #ddd;align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100vw;height:100vh;background-color:#000c;transition:opacity .3s ease}.modal-mask .modal-wrapper[data-v-6f042298]{width:400px;height:calc(100vh - 20px);margin:auto}iframe[data-v-6f042298]{width:100%;height:calc(100% - 10px);border:0;overflow:hidden}
1
+ svg#paypal[data-v-2b840669]{--size: 30px;width:var(--size);height:var(--size)}svg[data-v-6a1e8b23]{--size: 30px;width:var(--size);height:var(--size)}svg[data-v-f87e02ce]{--size: 30px;width:var(--size);height:var(--size)}svg#payto-icon[data-v-0b2d8aa0]{--size: 30px;width:var(--size);height:var(--size)}.payfurl-sdk-combined-container input[type=radio][data-v-240dc514]{height:auto;min-width:auto}.payfurl-sdk-combined-container[data-v-240dc514]{max-width:100%;width:fit-content;display:flex;flex-direction:column;padding:15px;border:var(--border);border-radius:5px}.payfurl-sdk-combined-tab[data-v-240dc514]{width:auto;height:52px;padding:0 10px;display:flex;align-items:center;justify-items:center;cursor:pointer;background-color:#fff;color:var(--color-text);border-top:1px solid var(--border-color)}.payfurl-sdk-combined-tab[data-v-240dc514]:first-child{border-top:0}.payfurl-sdk-combined-tab .combined-tab-title[data-v-240dc514]{width:fit-content;height:fit-content;display:flex;flex-direction:column;margin-right:50px}.payfurl-sdk-combined-tab .combined-tab-title .combined-tab-name[data-v-240dc514]{font-weight:700}.payfurl-sdk-combined-tab .combined-tab-title .combined-tab-description[data-v-240dc514]{color:var(--color-text-light);font-size:.8em}.payfurl-sdk-combined-tab>svg[data-v-240dc514],.payfurl-sdk-combined-tab>img[data-v-240dc514]{margin-left:auto}.payfurl-sdk-combined-tab>input[type=radio][data-v-240dc514]{margin-right:20px}.payfurl-sdk-container-component[data-v-240dc514]{min-height:50px;padding:0 45px}.payfurl-sdk-combined-container[data-v-240dc514]{margin-bottom:20px}@media screen and (max-width: 400px){.payfurl-sdk-container-component[data-v-240dc514]{min-height:50px;padding:0}}.message[data-v-ae4be0f9]{color:var(--color-error);background:transparent;font-size:20px;font-weight:700;margin-bottom:20px}.message[data-v-6a4e1608]{color:var(--color-success);background:transparent;font-size:20px;font-weight:700;margin-bottom:20px}.masked[data-v-16bb7d59]{height:100vh;width:100vw;background-color:#0009;z-index:999999;position:fixed;top:0;left:0}.lds-spinner[data-v-16bb7d59]{--spinner-size: 50px;--spinner-size2: 25px;--spinner-size3: 14px;--spinner-width: 3px;--spinner-left: 23px;display:inline-block;position:absolute;width:var(--spinner-size);height:var(--spinner-size);left:calc(50vw - var(--spinner-size2)/2);top:calc(50vh - var(--spinner-size2)/2)}.lds-spinner.single[data-v-16bb7d59]{--spinner-size: 50px;--spinner-size2: 25px;--spinner-size3: 14px;--spinner-width: 3px;--spinner-left: 23px;display:inline-block;position:relative;width:var(--spinner-size);height:var(--spinner-size);left:calc(50% - var(--spinner-size2)/2);top:0}.message[data-v-16bb7d59]{text-align:center;position:absolute;width:100vw;top:calc(50vh - 75px);color:#fff;font-size:2em}.lds-spinner div[data-v-16bb7d59]{transform-origin:var(--spinner-size2) var(--spinner-size2);animation:lds-spinner-16bb7d59 1.2s linear infinite}.lds-spinner div[data-v-16bb7d59]:after{content:" ";display:block;position:absolute;top:3px;left:var(--spinner-left);width:var(--spinner-width);height:var(--spinner-size3);border-radius:20%;background:#bcdff1}.lds-spinner div[data-v-16bb7d59]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-16bb7d59]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-16bb7d59]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-16bb7d59]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-16bb7d59]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-16bb7d59]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-16bb7d59]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-16bb7d59]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-16bb7d59]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-16bb7d59]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-16bb7d59]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-16bb7d59]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-16bb7d59{0%{opacity:1}to{opacity:0}}iframe#payfurl-card-iframe{border:none;overflow:hidden;width:100%;height:240px}div#payfurl-payto-form[data-v-abff4886]{padding-bottom:20px}.small[data-v-abff4886]{font-size:.8em}div#payfurl-payto-agreement[data-v-f06289bf]{padding-bottom:20px}.message[data-v-f06289bf]{color:var(--color-text);background:transparent;font-size:20px;font-weight:700;margin-bottom:20px}svg[data-v-d7e8386b]{fill:#000;stroke:transparent;width:20px;height:20px}.modal-mask[data-v-2b2c8fc7]{--color-hr: #ddd;align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100vw;height:100vh;background-color:#000c;transition:opacity .3s ease}.modal-mask .modal-wrapper[data-v-2b2c8fc7]{max-height:calc(100vh - 20px);margin:30px auto auto}.modal-mask .modal-wrapper .modal-content[data-v-2b2c8fc7]{position:relative;background-color:#fff;display:flex;flex-direction:column;min-width:min(450px,90vw);max-height:calc(100vh - 60px)}.modal-mask .modal-wrapper .modal-content .modal-header[data-v-2b2c8fc7],.modal-mask .modal-wrapper .modal-content .modal-footer[data-v-2b2c8fc7]{border:none;padding:25px 35px}.modal-mask .modal-wrapper .modal-content .modal-header[data-v-2b2c8fc7]{border-bottom:1px solid var(--color-hr)}.modal-mask .modal-wrapper .modal-content .modal-footer[data-v-2b2c8fc7]{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--color-hr)}.modal-mask .modal-wrapper .modal-content .modal-body[data-v-2b2c8fc7]{flex:1;overflow-y:auto;padding:0;position:relative}.modal-mask .modal-wrapper .modal-content .main-title[data-v-2b2c8fc7]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:20px;color:#000;padding-right:35px}.modal-mask .modal-wrapper .modal-content .close-icon[data-v-2b2c8fc7]{position:absolute;top:29px;right:27px;cursor:pointer}.modal-mask .modal-wrapper.small[data-v-2b2c8fc7]{margin:20% auto auto}.modal-mask .modal-wrapper.small .modal-content .modal-header[data-v-2b2c8fc7],.modal-mask .modal-wrapper.small .modal-content .modal-footer[data-v-2b2c8fc7]{border:none;padding:15px}.modal-mask .modal-wrapper.small .modal-content .modal-body[data-v-2b2c8fc7]{padding:15px 25px 25px}.modal-mask .modal-wrapper.small .modal-content .close-icon[data-v-2b2c8fc7]{top:19px}@media (max-height: 460px){.modal-mask .modal-wrapper[data-v-2b2c8fc7]{max-height:none;margin:auto}.modal-mask .modal-wrapper .modal-content[data-v-2b2c8fc7]{position:relative;background-color:#fff;overflow-y:auto;display:block}.modal-mask .modal-wrapper .modal-content .modal-header[data-v-2b2c8fc7],.modal-mask .modal-wrapper .modal-content .modal-footer[data-v-2b2c8fc7]{height:90px}.modal-mask .modal-wrapper .modal-content .modal-header[data-v-2b2c8fc7]{position:fixed;width:465px;background-color:#fff;z-index:9998}.modal-mask .modal-wrapper .modal-content .modal-body[data-v-2b2c8fc7]{max-height:none;margin-top:90px;overflow-y:visible}}iframe[data-v-5d26ad8f]{width:100%;height:calc(100% - 10px);border:0;overflow:hidden}div.payfurl-checkout-form[data-v-6084c60d]{padding-bottom:20px;position:relative}button[data-v-6084c60d]{width:100%;height:40px;border:0;border-radius:4px;background-color:#459ad8;color:#fff;text-align:center;font-family:Avenir,Helvetica,Arial,sans-serif;font-size:1.1em;font-weight:400;cursor:pointer}svg[data-v-7d3fe743]{--size: 30px;width:var(--size);height:var(--size)}.click2pay-logo[data-v-cb006d2b]{width:max-content}.click2pay-logo img[data-v-cb006d2b]{height:20px;margin-right:5px;vertical-align:middle}.click2pay-logo img[data-v-cb006d2b]:first-child{margin-right:10px}.payfurl-form[data-v-693ba623]{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--color-text);font-size:1em;font-weight:400;line-height:1.5;background-color:var(--background-color);box-sizing:border-box}.payfurl-form[data-v-693ba623] *,.payfurl-form[data-v-693ba623] *:before,.payfurl-form[data-v-693ba623] *:after{box-sizing:inherit}.payfurl-form[data-v-693ba623] *:focus{outline:none}.payfurl-form label[data-v-693ba623]{font-size:.8em;font-weight:700}.payfurl-form input[data-v-693ba623]:not([type=checkbox]):not([type=radio]){-webkit-appearance:none}.payfurl-form input[data-v-693ba623]:not([type=checkbox]):not([type=radio]),.payfurl-form select[data-v-693ba623]{max-width:100%;width:100%;border:var(--border);border-radius:4px;box-shadow:inset 0 .0625em .125em #0a0a0a0d;background-color:#fff;color:var(--color-input-text);align-items:center;font-size:1rem;height:2.5em;line-height:1.5;padding:calc(.5em - 1px) calc(.75em - 1px);position:relative;margin:0}.payfurl-form input[data-v-693ba623]:hover,.payfurl-form select[data-v-693ba623]:hover{border-color:var(--border-hover)}.payfurl-form[data-v-693ba623] ::placeholder{color:#30313d}.payfurl-form[data-v-693ba623] ::-webkit-input-placeholder{color:#3b3b3b4d}.payfurl-form[data-v-693ba623] ::-moz-placeholder{color:#3b3b3b4d}.payfurl-form[data-v-693ba623] :-ms-input-placeholder{color:#3b3b3b4d}.payfurl-form[data-v-693ba623] :-moz-placeholder{color:#3b3b3b4d}.payfurl-form .error[data-v-693ba623]{font-size:1.2em;color:var(--color-error)}.payfurl-form .success[data-v-693ba623]{font-size:1.2em;color:var(--color-success)}.payfurl-form .info-message[data-v-693ba623]{font-size:.8em;color:var(--color-text)}.payfurl-form .group[data-v-693ba623]{grid-template-columns:repeat(2,minmax(0,1fr));display:grid;gap:10px}.payfurl-form .container-form[data-v-693ba623]{position:relative;width:300px;max-width:100%}.payfurl-form .container-form .text-big[data-v-693ba623]{font-size:1.25em}.payfurl-form .container-form .text-normal[data-v-693ba623]{font-size:1em}.payfurl-form button[data-v-693ba623]{--color-text: #000;--color-text-light: #594f51;--color-text-background: rgba(15, 135, 201, .1);--input-border: #dbdbdb;--input-border-hover: #b5b5b5;display:flex;align-items:center;color:var(--color-text-light);border:1px solid var(--input-border);transition:all .5s ease;transition-property:color,border;white-space:nowrap;border-radius:5px}.payfurl-form button[data-v-693ba623]:hover{border:1px solid var(--input-border-hover)}.payfurl-form button:hover svg[data-v-693ba623]{fill:#000}.payfurl-form button svg[data-v-693ba623]{margin-right:5px}.payfurl-form[data-v-693ba623]{padding:20px}button[data-v-693ba623]{padding:7px 20px}.payfurl-form .container-form[data-v-693ba623]{width:100%}.payfurl-form .container-form label[data-v-693ba623],.payfurl-form .container-form input[data-v-693ba623]{width:100%;padding-left:10px}.payfurl-form.payfurl-form-footer[data-v-693ba623]{padding:0;display:flex;gap:10px}.payment-method-info[data-v-7894e1cd]{display:flex;align-items:center;gap:10px;cursor:pointer;height:40px}.payment-method-info img[data-v-7894e1cd]{margin-left:0;flex:min-content;height:40px;max-width:50px}.payment-method-info .payment-method-details[data-v-7894e1cd]{flex:100%}.saved-payment-methods .payment-method-info .payment-method-details .payment-method-details-name[data-v-7894e1cd]{white-space:nowrap}.saved-payment-methods .payment-method-info .payment-method-details div[data-v-7894e1cd]:first-child{font-weight:700}a.black[data-v-7f8bbef8]{color:#000;text-decoration:underline;font-size:.8em}a.blue[data-v-7f8bbef8]{color:#00f;text-decoration:none;font-size:1em;margin-top:10px}.saved-payment-methods .title[data-v-7f8bbef8]{margin-top:10px;font-weight:700}.saved-payment-methods[data-v-7f8bbef8]{display:flex;flex-direction:column;max-width:100vw;width:max-content;gap:10px;margin:20px 0}.saved-payment-methods .payment-method-container[data-v-7f8bbef8]{padding:5px;margin:2px;display:flex;gap:20px;flex-wrap:nowrap}.saved-payment-methods .payment-method-container.error[data-v-7f8bbef8]{flex-wrap:wrap;color:initial}.saved-payment-methods .payment-method-container[data-v-7f8bbef8]:hover{background-color:#f0f0f0}.error[data-v-7f8bbef8]{flex-basis:100%;margin:0;padding:0;color:var(--color-error)}iframe[data-v-ac351494]{width:250px;height:400px;border:none;overflow:hidden}.mask[data-v-ac351494]{align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100vw;height:100vh;background-color:#000c;transition:opacity .3s ease}.wrapper[data-v-ac351494]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-ac351494]{position:relative;width:300px;max-width:100%;background:#fff;display:flex;justify-content:center;align-items:center}svg[data-v-ac351494]{cursor:pointer;position:absolute;right:5px;top:5px}.mask[data-v-8a0b6dcb]{align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100vw;height:100vh;background-color:#000c;transition:opacity .3s ease}.wrapper[data-v-8a0b6dcb]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-8a0b6dcb]{position:relative;width:450px;height:450px;max-width:100%;max-height:100%;background:#fff;display:flex;justify-content:center;align-items:center}svg[data-v-8a0b6dcb]{cursor:pointer;position:absolute;right:5px;top:5px}iframe[data-v-8d26953f]{width:650px;height:400px;border:none;overflow:hidden}.mask[data-v-8d26953f]{align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100vw;height:100vh;background-color:#000c;transition:opacity .3s ease}.wrapper[data-v-8d26953f]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-8d26953f]{position:relative;width:700px;background:#fff;display:flex;justify-content:center;align-items:center}svg[data-v-8d26953f]{cursor:pointer;position:absolute;right:5px;top:5px}iframe[data-v-9b0ef3a8]{border:none;overflow:hidden}.mask[data-v-9b0ef3a8]{align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100vw;height:100vh;background-color:#000c;transition:opacity .3s ease}.wrapper[data-v-9b0ef3a8]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-9b0ef3a8]{position:relative;width:100vw;background:#fff;display:flex;justify-content:center;align-items:center}svg[data-v-9b0ef3a8]{cursor:pointer;position:absolute;right:5px;top:5px}iframe[data-v-6293d147]{width:650px;height:400px;border:none;overflow:hidden}.mask[data-v-6293d147]{align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100vw;height:100vh;background-color:#000c;transition:opacity .3s ease}.wrapper[data-v-6293d147]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-6293d147]{position:relative;width:700px;background:#fff;display:flex;justify-content:center;align-items:center}svg[data-v-6293d147]{cursor:pointer;position:absolute;right:5px;top:5px}.payfurl-form{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--color-text);font-size:1em;font-weight:400;line-height:1.5;background-color:var(--background-color);box-sizing:border-box}.payfurl-form *,.payfurl-form *:before,.payfurl-form *:after{box-sizing:inherit}.payfurl-form *:focus{outline:none}.payfurl-form label{font-size:.8em;font-weight:700}.payfurl-form input:not([type=checkbox]):not([type=radio]){-webkit-appearance:none}.payfurl-form input:not([type=checkbox]):not([type=radio]),.payfurl-form select{max-width:100%;width:100%;border:var(--border);border-radius:4px;box-shadow:inset 0 .0625em .125em #0a0a0a0d;background-color:#fff;color:var(--color-input-text);align-items:center;font-size:1rem;height:2.5em;line-height:1.5;padding:calc(.5em - 1px) calc(.75em - 1px);position:relative;margin:0}.payfurl-form input:hover,.payfurl-form select:hover{border-color:var(--border-hover)}.payfurl-form ::placeholder{color:#30313d}.payfurl-form ::-webkit-input-placeholder{color:#3b3b3b4d}.payfurl-form ::-moz-placeholder{color:#3b3b3b4d}.payfurl-form :-ms-input-placeholder{color:#3b3b3b4d}.payfurl-form :-moz-placeholder{color:#3b3b3b4d}.payfurl-form .error{font-size:1.2em;color:var(--color-error)}.payfurl-form .success{font-size:1.2em;color:var(--color-success)}.payfurl-form .info-message{font-size:.8em;color:var(--color-text)}.payfurl-form .group{grid-template-columns:repeat(2,minmax(0,1fr));display:grid;gap:10px}.payfurl-form .container-form{position:relative;width:300px;max-width:100%}.payfurl-form .container-form .text-big{font-size:1.25em}.payfurl-form .container-form .text-normal{font-size:1em}.payfurl-form button{--color-text: #000;--color-text-light: #594f51;--color-text-background: rgba(15, 135, 201, .1);--input-border: #dbdbdb;--input-border-hover: #b5b5b5;display:flex;align-items:center;color:var(--color-text-light);border:1px solid var(--input-border);transition:all .5s ease;transition-property:color,border;white-space:nowrap;border-radius:5px}.payfurl-form button:hover{border:1px solid var(--input-border-hover)}.payfurl-form button:hover svg{fill:#000}.payfurl-form button svg{margin-right:5px}body,body.common{--background-color: white;--color-text: #4a4a4a;--color-text-light: #777777;--color-input-text: #4a4a4a;--border: 1px solid #dbdbdb;--border-color: #dbdbdb;--border-hover: 1px solid #363636;--color-error: red;--color-success: #48b608}body.dark{--background-color: black;--color-text: white;--color-input-text: #4a4a4a;--border: 1px solid #b4e1ee;--border-hover: 1px solid #363636;--color-error: red;--color-success: #48b608}.modal-mask[data-v-6f042298]{--color-hr: #ddd;align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100vw;height:100vh;background-color:#000c;transition:opacity .3s ease}.modal-mask .modal-wrapper[data-v-6f042298]{width:400px;height:calc(100vh - 20px);margin:auto}iframe[data-v-6f042298]{width:100%;height:calc(100% - 10px);border:0;overflow:hidden}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@payfurl/client",
3
3
  "private": false,
4
- "version": "4.6.21",
4
+ "version": "4.6.22",
5
5
  "files": [
6
6
  "dist/sdk"
7
7
  ],
@@ -1,159 +0,0 @@
1
- var g = Object.defineProperty;
2
- var A = (a, t, i) => t in a ? g(a, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[t] = i;
3
- var s = (a, t, i) => A(a, typeof t != "symbol" ? t + "" : t, i);
4
- import { R as b, g as C, H as P } from "./ThreeDsProvider.interface-BqrnU_2p.js";
5
- const h = {
6
- CHECKOUT: "CHECKOUT",
7
- CHARGE: "CHARGE"
8
- }, p = (a) => ({
9
- [h.CHECKOUT]: {
10
- url: a + "/payment_method/checkout",
11
- method: "POST"
12
- },
13
- [h.CHARGE]: {
14
- url: a + "/charge/checkout",
15
- method: "POST"
16
- }
17
- });
18
- class I {
19
- constructor(t, i, o, r, n, e) {
20
- s(this, "log");
21
- s(this, "container");
22
- s(this, "button", null);
23
- s(this, "providerId");
24
- s(this, "apiUrl");
25
- s(this, "amount");
26
- s(this, "currency");
27
- s(this, "clientParameters");
28
- s(this, "billingAddress", null);
29
- s(this, "customer", null);
30
- s(this, "order", null);
31
- s(this, "buttonId", "apple-pay-payway-button");
32
- s(this, "onLoad", () => {
33
- });
34
- s(this, "onSuccess");
35
- s(this, "onFailure");
36
- s(this, "httpInvoker", null);
37
- this.log = t, this.apiUrl = e.apiUrl, this.container = i || document.body, this.clientParameters = e.clientParameters, this.providerId = e.providerId, this.amount = Number(r), this.currency = n, this.providerId = o, this.onSuccess = e.onSuccess || null, this.onFailure = e.onFailure || null;
38
- const d = new b(e.environment, C(e.publicKey));
39
- this.httpInvoker = new P(e.publicKey, e.version, d), this.init();
40
- }
41
- draw() {
42
- const t = () => {
43
- this.onLoad = () => {
44
- };
45
- const i = {
46
- container: this.buttonId,
47
- publishableApiKey: this.clientParameters.PublishableApiKey,
48
- principalAmount: this.amount,
49
- currency: String(this.currency).toLowerCase(),
50
- buttonMode: "callback"
51
- };
52
- this.log("[createPaymentRequestButton]", i), window.payway.createPaymentRequestButton(i, (o, r) => {
53
- var n;
54
- if (this.log("[createPaymentRequestButton]", o, r), o) {
55
- (n = this.onFailure) == null || n.call(this, o);
56
- return;
57
- }
58
- this.checkout(r.singleUseTokenId);
59
- });
60
- };
61
- window.payway ? t() : this.onLoad = t;
62
- }
63
- show() {
64
- this.button && (this.button.style.display = "block");
65
- }
66
- hide() {
67
- this.button && (this.button.style.display = "none");
68
- }
69
- init() {
70
- const t = document.createElement("div");
71
- t.id = this.buttonId, this.container.appendChild(t), this.button = t, this.initScript();
72
- }
73
- initScript() {
74
- const t = document.createElement("script");
75
- t.src = "https://api.payway.com.au/rest/v1/payway.js", t.onload = () => {
76
- this.onLoad && this.onLoad();
77
- }, document.head.appendChild(t);
78
- }
79
- checkout(t) {
80
- var o, r, n, e, d, m;
81
- const i = {
82
- providerId: this.providerId,
83
- amount: this.amount,
84
- currency: this.currency,
85
- reference: (o = this.order) == null ? void 0 : o.orderNumber,
86
- options: {
87
- ProviderToken: t
88
- },
89
- customer: {
90
- firstName: (r = this.customer) == null ? void 0 : r.firstName,
91
- lastName: (n = this.customer) == null ? void 0 : n.lastName,
92
- email: (e = this.customer) == null ? void 0 : e.email,
93
- phone: (d = this.customer) == null ? void 0 : d.phoneNumber,
94
- billingAddress: this.billingAddress && {
95
- name: `${this.billingAddress.firstName} ${this.billingAddress.lastName}`,
96
- addressLine1: this.billingAddress.streetAddress,
97
- addressLine2: this.billingAddress.streetAddress2,
98
- suburb: this.billingAddress.city,
99
- countryCode: this.billingAddress.country,
100
- postcode: this.billingAddress.postalCode,
101
- state: this.billingAddress.state
102
- } || void 0
103
- },
104
- items: this.order && this.order.orderItems.map((l) => ({
105
- name: l.name,
106
- reference: l.sku,
107
- quantity: Number(l.quantity),
108
- amount: Number(l.unitPrice)
109
- })) || []
110
- };
111
- this.log("[PayWayAppleButton][checkout]", i), (m = this.httpInvoker) == null || m.invoke(p(this.apiUrl)[h.CHECKOUT].url, p(this.apiUrl)[h.CHECKOUT].method, JSON.stringify(i), (l, u) => {
112
- this.log("[PayWayAppleButton][checkout]: successCheckoutHandler", l, u);
113
- const y = JSON.parse(u), c = JSON.parse(window.atob(y.checkoutData));
114
- this.log("[PayWayAppleButton][checkout]: decodedData", c), this.charge(c.checkoutId);
115
- }, (l, u) => {
116
- var c;
117
- this.log("[PayWayAppleButton][checkout]: failureCheckoutHandler", l, u);
118
- const y = JSON.parse(u);
119
- (c = this.onFailure) == null || c.call(this, { error: y.message });
120
- });
121
- }
122
- charge(t) {
123
- var i;
124
- this.log("[PayWayAppleButton][charge]", { checkoutId: t }), (i = this.httpInvoker) == null || i.invoke(p(this.apiUrl)[h.CHARGE].url, p(this.apiUrl)[h.CHARGE].method, JSON.stringify({ checkoutId: t }), (o, r) => {
125
- var e;
126
- this.log("[PayWayAppleButton][charge]: successChargeHandler", o, r);
127
- const n = JSON.parse(r);
128
- (e = this.onSuccess) == null || e.call(this, {
129
- transactionId: n == null ? void 0 : n.chargeId
130
- });
131
- }, (o, r) => {
132
- var e;
133
- this.log("[PayWayAppleButton][charge]: failureChargeHandler", o, r);
134
- const n = JSON.parse(r);
135
- (e = this.onFailure) == null || e.call(this, { error: n.message });
136
- });
137
- }
138
- redraw() {
139
- this.button && (this.button.innerHTML = "", this.draw());
140
- }
141
- setAmount(t) {
142
- this.log("[PayWayAppleButton][setAmount]", t), this.amount = t, this.redraw();
143
- }
144
- setCurrency(t) {
145
- this.log("[PayWayAppleButton][setCurrency]", t), this.currency = t, this.redraw();
146
- }
147
- setCustomerInfo(t) {
148
- this.log("[PayWayAppleButton][setCustomerInfo]", t), this.customer = { ...t };
149
- }
150
- setBillingAddress(t) {
151
- this.log("[PayWayAppleButton][setBillingAddress]", t), this.billingAddress = { ...t };
152
- }
153
- setOrderInfo(t) {
154
- this.log("[PayWayAppleButton][setOrderInfo]", t), this.order = { ...t };
155
- }
156
- }
157
- export {
158
- I as PayWayAppleButton
159
- };