@payfurl/client 4.5.6 → 4.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sdk/{default-1b4c51be.mjs → default-e9cbfb8c.mjs} +5 -5
- package/dist/sdk/{ecentric-1eb9f65c.mjs → ecentric-a38ee625.mjs} +4 -4
- package/dist/sdk/gpayments-ce2cc11d.mjs +165 -0
- package/dist/sdk/icons/PayByAccount.svg +28 -0
- package/dist/sdk/icons/PayGLocal.svg +48 -0
- package/dist/sdk/icons/Upi.svg +303 -0
- package/dist/sdk/main-98c32247.mjs +8717 -0
- package/dist/sdk/payfurl.es.js +1 -1
- package/dist/sdk/payfurl.umd.js +14 -14
- package/dist/sdk/style.css +1 -1
- package/package.json +1 -1
- package/dist/sdk/gpayments-464c6d39.mjs +0 -141
- package/dist/sdk/main-51eb0a17.mjs +0 -8244
- /package/dist/sdk/icons/{click2pay.svg → ClickToPay.svg} +0 -0
package/dist/sdk/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
iframe[data-v-fa2e3c62]{width:250px;height:400px;border:none;overflow:hidden}.mask[data-v-fa2e3c62]{align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100%;height:100%;background-color:#000c;transition:opacity .3s ease}.wrapper[data-v-fa2e3c62]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-fa2e3c62]{position:relative;width:300px;background:white;display:flex;justify-content:center;align-items:center}svg[data-v-fa2e3c62]{cursor:pointer;position:absolute;right:5px;top:5px}iframe[data-v-40c9c2c1]{width:650px;height:400px;border:none;overflow:hidden}.mask[data-v-40c9c2c1]{align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100%;height:100%;background-color:#000c;transition:opacity .3s ease}.wrapper[data-v-40c9c2c1]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-40c9c2c1]{position:relative;width:700px;background:white;display:flex;justify-content:center;align-items:center}svg[data-v-40c9c2c1]{cursor:pointer;position:absolute;right:5px;top:5px}iframe[data-v-7e1050e4]{width:650px;height:400px;border:none;overflow:hidden}.mask[data-v-7e1050e4]{align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100%;height:100%;background-color:#000c;transition:opacity .3s ease}.wrapper[data-v-7e1050e4]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-7e1050e4]{position:relative;width:100%;background:white;display:flex;justify-content:center;align-items:center}svg[data-v-7e1050e4]{cursor:pointer;position:absolute;right:5px;top:5px}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-78bddb9e]{height:auto;min-width:auto}.payfurl-sdk-combined-container[data-v-78bddb9e]{width:fit-content;display:flex;flex-direction:column;padding:15px;border:var(--border);border-radius:5px}.payfurl-sdk-combined-tab[data-v-78bddb9e]{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-78bddb9e]:first-child{border-top:0}.payfurl-sdk-combined-tab .combined-tab-title[data-v-78bddb9e]{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-78bddb9e]{font-weight:700}.payfurl-sdk-combined-tab .combined-tab-title .combined-tab-description[data-v-78bddb9e]{color:var(--color-text-light);font-size:.8em}.payfurl-sdk-combined-tab>svg[data-v-78bddb9e],.payfurl-sdk-combined-tab>img[data-v-78bddb9e]{margin-left:auto}.payfurl-sdk-combined-tab>input[type=radio][data-v-78bddb9e]{margin-right:20px}.payfurl-sdk-container-component[data-v-78bddb9e]{min-height:50px;padding:0 45px}.payfurl-sdk-combined-container[data-v-78bddb9e]{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-f319bcfd]{height:100vh;width:100vw;background-color:#0009;z-index:999999;position:fixed;top:0;left:0}.lds-spinner[data-v-f319bcfd]{--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)}.message[data-v-f319bcfd]{text-align:center;position:absolute;width:100%;top:calc(50vh - 75px);color:#fff;font-size:2em}.lds-spinner div[data-v-f319bcfd]{transform-origin:var(--spinner-size2) var(--spinner-size2);animation:lds-spinner-f319bcfd 1.2s linear infinite}.lds-spinner div[data-v-f319bcfd]: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-f319bcfd]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-f319bcfd]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-f319bcfd]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-f319bcfd]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-f319bcfd]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-f319bcfd]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-f319bcfd]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-f319bcfd]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-f319bcfd]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-f319bcfd]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-f319bcfd]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-f319bcfd]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-f319bcfd{0%{opacity:1}to{opacity:0}}iframe[data-v-aadf7fda]{border:none;overflow:hidden;width:100%;height:240px}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}svg[data-v-d7e8386b]{fill:#000;stroke:transparent;width:20px;height:20px}.modal-mask[data-v-990ba291]{--color-hr: #ddd;align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100%;height:100%;background-color:#000c;transition:opacity .3s ease}.modal-mask .modal-wrapper[data-v-990ba291]{max-height:calc(100vh - 20px);margin:30px auto auto}.modal-mask .modal-wrapper .modal-content[data-v-990ba291]{position:relative;background-color:#fff;display:flex;flex-direction:column;min-width:450px;max-height:calc(100vh - 60px)}.modal-mask .modal-wrapper .modal-content .modal-header[data-v-990ba291],.modal-mask .modal-wrapper .modal-content .modal-footer[data-v-990ba291]{border:none;padding:25px 35px}.modal-mask .modal-wrapper .modal-content .modal-header[data-v-990ba291]{border-bottom:1px solid var(--color-hr)}.modal-mask .modal-wrapper .modal-content .modal-footer[data-v-990ba291]{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-990ba291]{flex:1;overflow-y:auto;padding:0;position:relative}.modal-mask .modal-wrapper .modal-content .main-title[data-v-990ba291]{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-990ba291]{position:absolute;top:29px;right:27px;cursor:pointer}.modal-mask .modal-wrapper.small[data-v-990ba291]{margin:20% auto auto}.modal-mask .modal-wrapper.small .modal-content .modal-header[data-v-990ba291],.modal-mask .modal-wrapper.small .modal-content .modal-footer[data-v-990ba291]{border:none;padding:15px}.modal-mask .modal-wrapper.small .modal-content .modal-body[data-v-990ba291]{padding:15px 25px 25px}.modal-mask .modal-wrapper.small .modal-content .close-icon[data-v-990ba291]{top:19px}@media (max-height: 460px){.modal-mask .modal-wrapper[data-v-990ba291]{max-height:none;margin:auto}.modal-mask .modal-wrapper .modal-content[data-v-990ba291]{position:relative;background-color:#fff;overflow-y:auto;display:block}.modal-mask .modal-wrapper .modal-content .modal-header[data-v-990ba291],.modal-mask .modal-wrapper .modal-content .modal-footer[data-v-990ba291]{height:90px}.modal-mask .modal-wrapper .modal-content .modal-header[data-v-990ba291]{position:fixed;width:465px;background-color:#fff;z-index:9998}.modal-mask .modal-wrapper .modal-content .modal-body[data-v-990ba291]{max-height:none;margin-top:90px;overflow-y:visible}}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}.payfurl-form .container-form .text-big{font-size:1.25em}.payfurl-form .container-form .text-normal{font-size:1em}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}div.payfurl-bnpl-form[data-v-2c030bac]{padding-bottom:20px;position:relative}button[data-v-2c030bac]{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)}
|
|
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}
|
package/package.json
CHANGED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { d as v, a as I, c as R, b as f, _ as g, g as y, H as D, T as E } from "./main-51eb0a17.mjs";
|
|
2
|
-
import { getEmptySuccessThreeDsPostAuthResponse as T } from "./ThreeDsPostAuthResponse.type-3091950f.mjs";
|
|
3
|
-
const U = { class: "mask" }, L = { class: "wrapper" }, N = { class: "container" }, k = ["src"], b = /* @__PURE__ */ v({
|
|
4
|
-
__name: "GPayments",
|
|
5
|
-
props: {
|
|
6
|
-
url: null
|
|
7
|
-
},
|
|
8
|
-
setup(t) {
|
|
9
|
-
const a = t;
|
|
10
|
-
return (e, u) => (I(), R("div", U, [
|
|
11
|
-
f("div", L, [
|
|
12
|
-
f("div", N, [
|
|
13
|
-
f("iframe", {
|
|
14
|
-
src: a.url
|
|
15
|
-
}, null, 8, k)
|
|
16
|
-
])
|
|
17
|
-
])
|
|
18
|
-
]));
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
const C = /* @__PURE__ */ g(b, [["__scopeId", "data-v-7e1050e4"]]);
|
|
22
|
-
let p = null, w, M = null, n = null, _ = "", c = "", h = "", O, i = null;
|
|
23
|
-
function r(t, ...a) {
|
|
24
|
-
p && p(t, a);
|
|
25
|
-
}
|
|
26
|
-
function x() {
|
|
27
|
-
r("init authentication"), n == null || n.onPreAuth(J, o);
|
|
28
|
-
}
|
|
29
|
-
function m() {
|
|
30
|
-
r("Do Authentication for transId", c), n == null || n.onAuth(h, _, c, !0, B, o);
|
|
31
|
-
}
|
|
32
|
-
function d() {
|
|
33
|
-
r("Do Post Authentication for transId", c), n == null || n.onPostAuth({ threeDSServerTransID: c }, H, o);
|
|
34
|
-
}
|
|
35
|
-
function G(t) {
|
|
36
|
-
const { destroy: a } = y({
|
|
37
|
-
el: document.body,
|
|
38
|
-
component: C,
|
|
39
|
-
props: {
|
|
40
|
-
url: t
|
|
41
|
-
},
|
|
42
|
-
on: {
|
|
43
|
-
close: () => {
|
|
44
|
-
a(), i = null;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
i = a, window.addEventListener("message", A);
|
|
49
|
-
}
|
|
50
|
-
function S() {
|
|
51
|
-
i == null || i(), window.removeEventListener("message", A);
|
|
52
|
-
}
|
|
53
|
-
const o = (t, a) => {
|
|
54
|
-
if (S(), t === 404) {
|
|
55
|
-
n == null || n.onError({ error: "This feature is only supported by ActiveServer v1.1.2+" });
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
n == null || n.onError({ error: "3D Secure failed", body: a });
|
|
59
|
-
}, H = (t, a) => {
|
|
60
|
-
S();
|
|
61
|
-
const e = JSON.parse(a);
|
|
62
|
-
["Y", "A"].includes(e.transStatus) ? n == null || n.onSuccess(e) : (r("3D Secure failed", e), n == null || n.onError({ error: "3D Secure failed" }));
|
|
63
|
-
}, J = (t, a) => {
|
|
64
|
-
const e = JSON.parse(a);
|
|
65
|
-
if (r("[onInitAuthSuccess]", e), !e.threeDSMethodAvailable) {
|
|
66
|
-
r("3DS Check is NOT available"), n == null || n.onSuccess(T());
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
if (!e.threeDSAuthURL) {
|
|
70
|
-
o(t, "No AuthUrl specified");
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
_ = e.threeDSRequestorTransID, c = e.threeDSServerTransID, e.threeDSMonitorURL, h = e.threeDSAuthURL, m();
|
|
74
|
-
}, B = (t, a) => {
|
|
75
|
-
const e = JSON.parse(a);
|
|
76
|
-
if (r("[onDoAuthSuccess]", e), !e.transStatus) {
|
|
77
|
-
o(t, "No transStatus specified");
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
switch (e.transStatus) {
|
|
81
|
-
case "C":
|
|
82
|
-
if (!e.acsURL) {
|
|
83
|
-
o(t, "Invalid Challenge Url");
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
G(e.acsURL);
|
|
87
|
-
break;
|
|
88
|
-
case "D":
|
|
89
|
-
if (!e.threeDSMonitorURL) {
|
|
90
|
-
o(t, "Invalid Result Mon Url");
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
q(e.threeDSMonitorURL);
|
|
94
|
-
break;
|
|
95
|
-
default:
|
|
96
|
-
d();
|
|
97
|
-
break;
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
let l = null;
|
|
101
|
-
function q(t) {
|
|
102
|
-
if (l)
|
|
103
|
-
return;
|
|
104
|
-
const a = new D("", "", null);
|
|
105
|
-
l = setInterval(() => {
|
|
106
|
-
a.invoke(t, "GET", {}, (e, u) => {
|
|
107
|
-
const s = JSON.parse(u);
|
|
108
|
-
if (!s.event) {
|
|
109
|
-
r("Invalid mon url result", u);
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
if (s.event === "AuthResultNotReady") {
|
|
113
|
-
r("AuthResultNotReady, retry in 2 seconds");
|
|
114
|
-
return;
|
|
115
|
-
} else
|
|
116
|
-
s.event === "AuthResultReady" ? (r("AuthResultReady", s), d()) : r("Invalid mon url result", s);
|
|
117
|
-
}, (e, u) => {
|
|
118
|
-
l && (clearInterval(l), l = null), o(e, "Invalid mon url result");
|
|
119
|
-
});
|
|
120
|
-
}, 2e3);
|
|
121
|
-
}
|
|
122
|
-
function A(t) {
|
|
123
|
-
var a, e;
|
|
124
|
-
if (!(!((a = t == null ? void 0 : t.data) != null && a.status) || ((e = t == null ? void 0 : t.data) == null ? void 0 : e.status) === E) && t.data.status === "3ds_challenge_complete") {
|
|
125
|
-
t.stopPropagation(), S(), r("3Ds Challenge complete", t.data), d();
|
|
126
|
-
return;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
function V(t, a, e, u) {
|
|
130
|
-
return p = t, M = a, O = e || document.body, w = u, {
|
|
131
|
-
onPreAuth: x,
|
|
132
|
-
onAuth: m,
|
|
133
|
-
onPostAuth: d,
|
|
134
|
-
setThreeDsProcessor: (s) => {
|
|
135
|
-
n = s;
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
export {
|
|
140
|
-
V as default
|
|
141
|
-
};
|