@payfurl/client 4.5.8 → 4.6.0

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.
@@ -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-33711fb1]{--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-6abd8e98]{height:auto;min-width:auto}.payfurl-sdk-combined-container[data-v-6abd8e98]{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-6abd8e98]{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-6abd8e98]:first-child{border-top:0}.payfurl-sdk-combined-tab .combined-tab-title[data-v-6abd8e98]{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-6abd8e98]{font-weight:700}.payfurl-sdk-combined-tab .combined-tab-title .combined-tab-description[data-v-6abd8e98]{color:var(--color-text-light);font-size:.8em}.payfurl-sdk-combined-tab>svg[data-v-6abd8e98],.payfurl-sdk-combined-tab>img[data-v-6abd8e98]{margin-left:auto}.payfurl-sdk-combined-tab>input[type=radio][data-v-6abd8e98]{margin-right:20px}.payfurl-sdk-container-component[data-v-6abd8e98]{min-height:50px;padding:0 45px}.payfurl-sdk-combined-container[data-v-6abd8e98]{margin-bottom:20px}.message[data-v-ae4be0f9]{color:var(--color-error);background:transparent;font-size:20px;font-weight:700;margin-bottom:20px}.message[data-v-265528b7]{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[data-v-aadf7fda]{border:none;overflow:hidden;width:100%;height:240px}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}}.payfurl-form[data-v-584afce5]{padding:20px}div#payfurl-payto-form[data-v-4d39ea7d]{padding-bottom:20px}.small[data-v-4d39ea7d]{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}iframe[data-v-deb26109]{width:100%;height:calc(100% - 10px);border:0;overflow:hidden}.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:#3b3b3b4d}.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 .group{display:flex;justify-content:flex-start}.payfurl-form .group>div:first-child{margin-right: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}.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}div.payfurl-bnpl-form[data-v-10bacb0d]{padding-bottom:20px;position:relative}button[data-v-10bacb0d]{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)}iframe[data-v-c82daa22]{width:250px;height:400px;border:none;overflow:hidden}.mask[data-v-c82daa22]{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-c82daa22]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-c82daa22]{position:relative;width:300px;max-width:100%;background:white;display:flex;justify-content:center;align-items:center}svg[data-v-c82daa22]{cursor:pointer;position:absolute;right:5px;top:5px}iframe[data-v-82a75009]{width:650px;height:400px;border:none;overflow:hidden}.mask[data-v-82a75009]{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-82a75009]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-82a75009]{position:relative;width:700px;background:white;display:flex;justify-content:center;align-items:center}svg[data-v-82a75009]{cursor:pointer;position:absolute;right:5px;top: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}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:white;display:flex;justify-content:center;align-items:center}svg[data-v-9b0ef3a8]{cursor:pointer;position:absolute;right:5px;top:5px}
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-33711fb1]{--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-6abd8e98]{height:auto;min-width:auto}.payfurl-sdk-combined-container[data-v-6abd8e98]{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-6abd8e98]{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-6abd8e98]:first-child{border-top:0}.payfurl-sdk-combined-tab .combined-tab-title[data-v-6abd8e98]{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-6abd8e98]{font-weight:700}.payfurl-sdk-combined-tab .combined-tab-title .combined-tab-description[data-v-6abd8e98]{color:var(--color-text-light);font-size:.8em}.payfurl-sdk-combined-tab>svg[data-v-6abd8e98],.payfurl-sdk-combined-tab>img[data-v-6abd8e98]{margin-left:auto}.payfurl-sdk-combined-tab>input[type=radio][data-v-6abd8e98]{margin-right:20px}.payfurl-sdk-container-component[data-v-6abd8e98]{min-height:50px;padding:0 45px}.payfurl-sdk-combined-container[data-v-6abd8e98]{margin-bottom:20px}.message[data-v-ae4be0f9]{color:var(--color-error);background:transparent;font-size:20px;font-weight:700;margin-bottom:20px}.message[data-v-265528b7]{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[data-v-aadf7fda]{border:none;overflow:hidden;width:100%;height:240px}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}}.payfurl-form[data-v-584afce5]{padding:20px}div#payfurl-payto-form[data-v-4d39ea7d]{padding-bottom:20px}.small[data-v-4d39ea7d]{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}iframe[data-v-5d26ad8f]{width:100%;height:calc(100% - 10px);border:0;overflow:hidden}.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:#3b3b3b4d}.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 .group{display:flex;justify-content:flex-start}.payfurl-form .group>div:first-child{margin-right: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}.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}div.payfurl-checkout-form[data-v-f77c225e]{padding-bottom:20px;position:relative}button[data-v-f77c225e]{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)}iframe[data-v-c82daa22]{width:250px;height:400px;border:none;overflow:hidden}.mask[data-v-c82daa22]{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-c82daa22]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-c82daa22]{position:relative;width:300px;max-width:100%;background:white;display:flex;justify-content:center;align-items:center}svg[data-v-c82daa22]{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:white;display:flex;justify-content:center;align-items:center}svg[data-v-9b0ef3a8]{cursor:pointer;position:absolute;right:5px;top:5px}.mask[data-v-c937c2f5]{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-c937c2f5]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-c937c2f5]{position:relative;width:450px;height:450px;max-width:100%;max-height:100%;background:white;display:flex;justify-content:center;align-items:center}svg[data-v-c937c2f5]{cursor:pointer;position:absolute;right:5px;top: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}iframe[data-v-82a75009]{width:650px;height:400px;border:none;overflow:hidden}.mask[data-v-82a75009]{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-82a75009]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-82a75009]{position:relative;width:700px;background:white;display:flex;justify-content:center;align-items:center}svg[data-v-82a75009]{cursor:pointer;position:absolute;right:5px;top:5px}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@payfurl/client",
3
3
  "private": false,
4
- "version": "4.5.8",
4
+ "version": "4.6.0",
5
5
  "files": [
6
6
  "dist/sdk"
7
7
  ],
@@ -23,6 +23,7 @@
23
23
  "server": "python3 -m http.server 3001"
24
24
  },
25
25
  "dependencies": {
26
+ "@sentry/browser": "^7.100.1",
26
27
  "dayjs": "^1.11.7",
27
28
  "vue": "^3.2.47"
28
29
  },
@@ -1,179 +0,0 @@
1
- import { d as v, r as A, o as C, a as R, c as y, b as c, e as b, C as U, u as w, p as E, f as k, _ as N, F as L, T as M, g as V } from "./main-98c32247.mjs";
2
- const O = (t) => (E("data-v-c82daa22"), t = t(), k(), t), q = { class: "mask" }, x = { class: "wrapper" }, F = { class: "container" }, J = /* @__PURE__ */ O(() => /* @__PURE__ */ c("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)), B = ["action"], $ = ["value"], j = /* @__PURE__ */ v({
3
- __name: "ThreeDsChallenge",
4
- props: {
5
- threeDSServerTransID: null,
6
- acsTransID: null,
7
- formAction: null
8
- },
9
- emits: ["close", "submit"],
10
- setup(t, { emit: n }) {
11
- const e = t, o = A(null), u = JSON.stringify({
12
- threeDSServerTransID: e.threeDSServerTransID,
13
- acsTransID: e.acsTransID,
14
- messageVersion: "2.1.0",
15
- messageType: "CReq",
16
- challengeWindowSize: "01"
17
- }), T = encodeURI(window.btoa(u).replace(/=*$/, ""));
18
- return C(() => {
19
- var d;
20
- (d = o.value) == null || d.submit();
21
- }), (d, p) => (R(), y("div", q, [
22
- c("div", x, [
23
- c("div", F, [
24
- b(U, {
25
- onClick: p[0] || (p[0] = (P) => n("close")),
26
- id: "3ds-challenge-close"
27
- }),
28
- J,
29
- c("form", {
30
- action: e.formAction,
31
- target: "ThreeDsChallengeIFrame",
32
- method: "post",
33
- ref_key: "form",
34
- ref: o
35
- }, [
36
- c("input", {
37
- type: "hidden",
38
- name: "creq",
39
- value: w(T)
40
- }, null, 8, $)
41
- ], 8, B)
42
- ])
43
- ])
44
- ]));
45
- }
46
- });
47
- const Y = /* @__PURE__ */ N(j, [["__scopeId", "data-v-c82daa22"]]);
48
- let h = null, D, z = null, a = null, m = "", i = "", _ = "", G, l = null;
49
- function s(t, ...n) {
50
- h && h(t, n);
51
- }
52
- function H() {
53
- s("init authentication"), a == null || a.onPreAuth(Q, r), window.addEventListener("message", I);
54
- }
55
- function S(t) {
56
- s("Do Authentication for transId", i, t), a == null || a.onAuth(_, m, i, t, "", X, r);
57
- }
58
- function g() {
59
- s("Do Post Authentication for transId", i), a == null || a.onPostAuth({ threeDSServerTransID: i }, W, r);
60
- }
61
- function K(t, n) {
62
- const { destroy: e } = V({
63
- el: document.body,
64
- component: Y,
65
- props: {
66
- threeDSServerTransID: i,
67
- acsTransID: n,
68
- formAction: t
69
- },
70
- on: {
71
- close: () => {
72
- e(), l = null, a == null || a.onError({ error: "Challenge cancelled" });
73
- }
74
- }
75
- });
76
- l = e;
77
- }
78
- function f() {
79
- l == null || l(), window.removeEventListener("message", I);
80
- }
81
- const r = (t, n) => {
82
- if (f(), t === 404) {
83
- a == null || a.onError({ error: "This feature is only supported by ActiveServer v1.1.2+" });
84
- return;
85
- }
86
- a == null || a.onError({ error: "3D Secure failed", body: n });
87
- }, W = (t, n) => {
88
- f();
89
- const e = JSON.parse(n);
90
- ["Y", "A"].includes(e.transStatus) ? a == null || a.onSuccess(e) : (s("3D Secure failed", e), a == null || a.onError({ error: "3D Secure failed" }));
91
- }, Q = (t, n) => {
92
- const e = JSON.parse(n);
93
- if (s("[onInitAuthSuccess], default", e), m = e.threeDSRequestorTransID, i = e.threeDSServerTransID, e.threeDSMonitorURL, _ = e.threeDSAuthURL, e.threeDSMethodURL) {
94
- Z(e.threeDSServerTransID, e.threeDSMethodURL);
95
- return;
96
- }
97
- S(!1);
98
- }, X = (t, n) => {
99
- const e = JSON.parse(n);
100
- if (s("[onDoAuthSuccess]", e), !e.transStatus) {
101
- r(t, "No transStatus specified");
102
- return;
103
- }
104
- switch (e.transStatus) {
105
- case "C":
106
- if (!e.acsURL) {
107
- r(t, "Invalid Challenge Url");
108
- return;
109
- }
110
- K(e.acsURL, e.acsTransID);
111
- break;
112
- case "N":
113
- s("[threeDsAuth], 3DS Verification failed, transaction denied"), r(400, "3DS Verification failed, transaction denied");
114
- break;
115
- case "U":
116
- s("[threeDsAuth], Unable to perform 3DS verification"), r(400, "Unable to perform 3DS verification");
117
- break;
118
- case "R":
119
- s("[threeDsAuth], Unable to perform 3DS verification, rejected at issuer"), r(400, "Unable to perform 3DS verification, rejected at issuer");
120
- break;
121
- default:
122
- s("[threeDsAuth], 3DS challenge not required, tranStatus: " + e.transStatus), a == null || a.onSuccess({
123
- threeDSServerTransID: e.threeDSServerTransID,
124
- threeDSRequestorTransID: "",
125
- acsRenderingType: e.acsRenderingType,
126
- acsTransID: e.acsTransID,
127
- authenticationType: e.authenticationType,
128
- authenticationValue: e.authenticationValue,
129
- challengeCancel: "",
130
- dsTransID: e.dsTransID,
131
- eci: e.eci,
132
- interactionCounter: "",
133
- messageCategory: "",
134
- messageExtension: e.messageExtension,
135
- messageType: e.messageType,
136
- messageVersion: e.messageVersion,
137
- transStatus: e.transStatus,
138
- transStatusReason: e.transStatusReason
139
- });
140
- break;
141
- }
142
- };
143
- function Z(t, n) {
144
- s("[threeDsMethodInvoke]", { threeDSServerTransID: t, threeDSMethodURL: n });
145
- const e = {
146
- threeDSServerTransID: t,
147
- threeDSMethodNotificationURL: D + "/3ds/method_invocation"
148
- }, o = encodeURI(window.btoa(JSON.stringify(e)).replace(/=*$/, ""));
149
- new L().invoke(n, "POST", {
150
- threeDSMethodData: o
151
- });
152
- }
153
- function I(t) {
154
- var n, e;
155
- if (!(!((n = t == null ? void 0 : t.data) != null && n.status) || ((e = t == null ? void 0 : t.data) == null ? void 0 : e.status) === M)) {
156
- if (t.data.status === "3ds_method_invocation_complete") {
157
- s("3Ds Method invocation complete"), t.stopPropagation(), S(!0);
158
- return;
159
- }
160
- if (t.data.status === "3ds_challenge_complete") {
161
- s("3Ds Challenge complete", t.data), t.stopPropagation(), f();
162
- const o = JSON.parse(window.atob(t.data.cres));
163
- s("cresData", o), ["Y", "A"].includes(o.transStatus) ? g() : ["N", "U", "R"].includes(o.transStatus) && (s("Failed 3DS Challenge", t.data), r(400, "Failed 3DS Challenge"));
164
- }
165
- }
166
- }
167
- function te(t, n, e, o) {
168
- return h = t, z = n, G = e || document.body, D = o, {
169
- onPreAuth: H,
170
- onAuth: S,
171
- onPostAuth: g,
172
- setThreeDsProcessor: (u) => {
173
- a = u;
174
- }
175
- };
176
- }
177
- export {
178
- te as default
179
- };
@@ -1,165 +0,0 @@
1
- import { d as A, a as I, c as v, b as h, n as _, _ as R, T as D, g as U, H as b } from "./main-98c32247.mjs";
2
- const E = { class: "mask" }, w = { class: "wrapper" }, k = ["src"], C = /* @__PURE__ */ A({
3
- __name: "GPayments",
4
- props: {
5
- url: null,
6
- width: null,
7
- height: null
8
- },
9
- setup(t) {
10
- const e = t;
11
- function n() {
12
- return {
13
- width: `${e.width || 650}px`,
14
- height: `${e.height || 400}px`
15
- };
16
- }
17
- return (s, o) => (I(), v("div", E, [
18
- h("div", w, [
19
- h("div", {
20
- class: "container",
21
- style: _([n(), { padding: "0", margin: "0" }])
22
- }, [
23
- h("iframe", {
24
- src: e.url,
25
- style: _(n())
26
- }, null, 12, k)
27
- ], 4)
28
- ])
29
- ]));
30
- }
31
- });
32
- const L = /* @__PURE__ */ R(C, [["__scopeId", "data-v-9b0ef3a8"]]);
33
- let p = null, T, N = null, a = null, S = "", c = "", g = "", x, u = null;
34
- function r(t, ...e) {
35
- p && p(t, e);
36
- }
37
- function M() {
38
- r("init authentication"), window.addEventListener("message", y), a == null || a.onPreAuth(H, l);
39
- }
40
- function f(t, e) {
41
- r("Do Authentication for transId", c), a == null || a.onAuth(g, S, c, t, e, J, l);
42
- }
43
- function d() {
44
- r("Do Post Authentication for transId", c), a == null || a.onPostAuth({ threeDSServerTransID: c }, O, l);
45
- }
46
- function G(t) {
47
- const { destroy: e } = U({
48
- el: document.body,
49
- component: L,
50
- props: {
51
- url: t,
52
- width: 390,
53
- height: 400
54
- },
55
- on: {
56
- close: () => {
57
- e(), u = null;
58
- }
59
- }
60
- });
61
- u = e;
62
- }
63
- function m() {
64
- u == null || u(), window.removeEventListener("message", y);
65
- }
66
- const l = (t, e) => {
67
- if (m(), t === 404) {
68
- a == null || a.onError({ error: "This feature is only supported by ActiveServer v1.1.2+" });
69
- return;
70
- }
71
- a == null || a.onError({ error: "3D Secure failed", body: e });
72
- }, O = (t, e) => {
73
- m();
74
- const n = JSON.parse(e);
75
- ["Y", "A"].includes(n.transStatus) ? a == null || a.onSuccess(n) : (r("3D Secure failed", n), a == null || a.onError({ error: "3D Secure failed" }));
76
- }, H = (t, e) => {
77
- const n = JSON.parse(e);
78
- if (r("[onInitAuthSuccess], gpayments", n), !n.threeDSAuthURL) {
79
- l(t, "No AuthUrl specified");
80
- return;
81
- }
82
- if (S = n.threeDSRequestorTransID, c = n.threeDSServerTransID, n.threeDSMonitorURL, g = n.threeDSAuthURL, n.threeDsServerCallbackUrl) {
83
- F(n.threeDsServerCallbackUrl);
84
- return;
85
- }
86
- f(!1, "");
87
- }, J = (t, e) => {
88
- const n = JSON.parse(e);
89
- if (r("[onDoAuthSuccess]", n), !n.transStatus) {
90
- l(t, "No transStatus specified");
91
- return;
92
- }
93
- switch (n.transStatus) {
94
- case "C":
95
- if (!n.acsURL) {
96
- l(t, "Invalid Challenge Url");
97
- return;
98
- }
99
- G(n.acsURL);
100
- break;
101
- case "D":
102
- if (!n.threeDSMonitorURL) {
103
- l(t, "Invalid Result Mon Url");
104
- return;
105
- }
106
- B(n.threeDSMonitorURL);
107
- break;
108
- default:
109
- d();
110
- break;
111
- }
112
- };
113
- let i = null;
114
- function B(t) {
115
- if (i)
116
- return;
117
- const e = new b("", "", null);
118
- i = setInterval(() => {
119
- e.invoke(t, "GET", {}, (n, s) => {
120
- const o = JSON.parse(s);
121
- if (!o.event) {
122
- r("Invalid mon url result", s);
123
- return;
124
- }
125
- if (o.event === "AuthResultNotReady") {
126
- r("AuthResultNotReady, retry in 2 seconds");
127
- return;
128
- } else
129
- o.event === "AuthResultReady" ? (r("AuthResultReady", o), d()) : r("Invalid mon url result", o);
130
- }, (n, s) => {
131
- i && (clearInterval(i), i = null), l(n, "Invalid mon url result");
132
- });
133
- }, 2e3);
134
- }
135
- function y(t) {
136
- var e, n;
137
- if (console.log("[gpayments]: message received", t.data), !(!((e = t == null ? void 0 : t.data) != null && e.status) || ((n = t == null ? void 0 : t.data) == null ? void 0 : n.status) === D)) {
138
- if (t.data.status === "3ds_method_invocation_complete") {
139
- r("3Ds Method invocation complete"), t.stopPropagation(), f(!0, t.data.browserInfo);
140
- return;
141
- }
142
- if (t.data.status === "3ds_challenge_complete") {
143
- t.stopPropagation(), m(), r("3Ds Challenge complete", t.data), d();
144
- return;
145
- }
146
- }
147
- }
148
- function F(t) {
149
- r("init3DSFrame", t);
150
- const e = document.createElement("iframe");
151
- e.src = t, e.style.width = "1px", e.style.height = "1px", e.style.border = "0", document.body.appendChild(e);
152
- }
153
- function $(t, e, n, s) {
154
- return p = t, N = e, x = n || document.body, T = s, {
155
- onPreAuth: M,
156
- onAuth: f,
157
- onPostAuth: d,
158
- setThreeDsProcessor: (o) => {
159
- a = o;
160
- }
161
- };
162
- }
163
- export {
164
- $ as default
165
- };