@payfurl/client 4.9.3 → 4.9.5
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/{CloseIcon-_KV9iu0n.js → CloseIcon-DUKC8zu2.js} +1 -1
- package/dist/sdk/{DefaultThreeDsProvider-DreQM4fZ.js → DefaultThreeDsProvider-BQXZxRSe.js} +1 -1
- package/dist/sdk/{MetricsGlobalThreeDsProvider-UjlztqNp.js → MetricsGlobalThreeDsProvider-CRGRhdai.js} +33 -32
- package/dist/sdk/{PayWayAppleButton-wGK5SMiI.js → PayWayAppleButton-BKBON7Yl.js} +1 -1
- package/dist/sdk/{alerts-xVUTwiZD.js → alerts-DMTJSYFZ.js} +1 -1
- package/dist/sdk/{cxpay-2xgRySpM.js → cxpay-BpEM9LbT.js} +1 -1
- package/dist/sdk/{default-C1jUec5H.js → default-CE5nSCNU.js} +1 -1
- package/dist/sdk/{ecentric-H05aJpLn.js → ecentric-C-L8fXG9.js} +2 -2
- package/dist/sdk/{epna-DTN4buF_.js → epna-CJhaNici.js} +1 -1
- package/dist/sdk/{flashbanc-BeK15hvh.js → flashbanc-3uXb_QxD.js} +1 -1
- package/dist/sdk/{forter-DH-MZghb.js → forter-CMRlI8RN.js} +2 -2
- package/dist/sdk/{gpayments-B5l_XcOn.js → gpayments-D6zvi_nT.js} +2 -2
- package/dist/sdk/{metrics_global-B-VSDUV6.js → metrics_global-Bkoz0wJ4.js} +1 -1
- package/dist/sdk/{nmi-DqmyITL0.js → nmi-D4gXIH6V.js} +1 -1
- package/dist/sdk/{nuvei-D4BRLq6t.js → nuvei-ZtJQN-Yz.js} +35 -27
- package/dist/sdk/{payabli-BuZpPAgS.js → payabli-DlSJfDyv.js} +1 -1
- package/dist/sdk/payfurl.es.js +895 -1592
- package/dist/sdk/payfurl.umd.js +8 -8
- package/dist/sdk/{payglocal--1ddjrp-.js → payglocal-BC6XGiGa.js} +4 -8
- package/dist/sdk/{payway_rest-Dwo-Hfis.js → payway_rest-DQj75YyG.js} +1 -1
- package/dist/sdk/{skybank-DwVlGG-A.js → skybank-D-w9VqY5.js} +1 -1
- package/dist/sdk/strings-Ksgqjvdu.js +174 -0
- package/dist/sdk/style.css +1 -1
- package/package.json +8 -7
- package/dist/sdk/strings-CnX8240A.js +0 -113
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Dt as e, Et as t, It as n, Nt as r, Ot as i, Tt as a, Z as o, _t as s, ct as c, dt as l, h as u, vt as d, xt as f } from "./CloseIcon-
|
|
2
|
-
import { t as p } from "./alerts-
|
|
3
|
-
import { t as m } from "./DefaultThreeDsProvider-
|
|
1
|
+
import { Dt as e, Et as t, It as n, Nt as r, Ot as i, Tt as a, Z as o, _t as s, ct as c, dt as l, h as u, vt as d, xt as f } from "./CloseIcon-DUKC8zu2.js";
|
|
2
|
+
import { t as p } from "./alerts-DMTJSYFZ.js";
|
|
3
|
+
import { t as m } from "./DefaultThreeDsProvider-BQXZxRSe.js";
|
|
4
4
|
//#region src/iframe/setup/log.ts
|
|
5
5
|
var h = n(!1);
|
|
6
6
|
function g(e, ...t) {
|
|
@@ -51,11 +51,7 @@ var y = { class: "modal-mask" }, b = { class: "modal-wrapper" }, x = ["src"], S
|
|
|
51
51
|
return "PayGLocal";
|
|
52
52
|
}
|
|
53
53
|
onPreAuth() {
|
|
54
|
-
this.log(`[${this.getType()}]: onPreAuth`), this.threeDsProcessor?.getTokenId() ? this.threeDsProcessor
|
|
55
|
-
this.log(`[${this.getType()}]: getCardDetails`, e, t), this.threeDsProcessor?.setPaymentInfo(e), this.initChallenge(t.RedirectUrl);
|
|
56
|
-
}, () => {
|
|
57
|
-
p(this.container, "Unable to get card information");
|
|
58
|
-
}) : this.threeDsProcessor?.tokeniseCard(this.threeDsProcessor.getProviderId(), (e) => {
|
|
54
|
+
this.log(`[${this.getType()}]: onPreAuth`), this.threeDsProcessor?.getTokenId() ? this.threeDsProcessor.getGatewayData(this.threeDsProcessor.getProviderId(), this.threeDsProcessor.getTokenId(), (e) => this.initChallenge(e.gatewayMetadata?.RedirectUrl || ""), () => this.threeDsProcessor?.onError({ error: "Unable to get card information" })) : this.threeDsProcessor?.tokeniseCard(this.threeDsProcessor.getProviderId(), (e) => {
|
|
59
55
|
this.log(`[${this.getType()}]: tokeniseCard`, e), this.initChallenge(e.gatewayTokenData.RedirectUrl);
|
|
60
56
|
}, (e) => {
|
|
61
57
|
p(this.container, e);
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
//#region src/sdk/config.local.ts
|
|
2
|
+
var e = {
|
|
3
|
+
baseUrl: "",
|
|
4
|
+
cssUrl: "",
|
|
5
|
+
redirectUrl: "",
|
|
6
|
+
url: "",
|
|
7
|
+
secureUrl: "/dist/secure/index.html",
|
|
8
|
+
apiUrl: "",
|
|
9
|
+
errorUrl: "https://y2it4xhgpx5junghaf3psg7a7q0splje.lambda-url.ap-southeast-2.on.aws"
|
|
10
|
+
}, t = {
|
|
11
|
+
baseUrl: "https://assets.payfurl.com",
|
|
12
|
+
cssUrl: "https://assets.payfurl.com/v4.9.5/js/",
|
|
13
|
+
url: "https://assets.payfurl.com/v4.9.5/iframe/index.html",
|
|
14
|
+
secureUrl: "https://assets.payfurl.com/v4.9.5/secure/index.html",
|
|
15
|
+
redirectUrl: "https://assets.payfurl.com/v4.9.5/checkout/redirect.html",
|
|
16
|
+
apiUrl: "https://develop-api.payfurl.com",
|
|
17
|
+
errorUrl: "https://y2it4xhgpx5junghaf3psg7a7q0splje.lambda-url.ap-southeast-2.on.aws"
|
|
18
|
+
}, n = {
|
|
19
|
+
baseUrl: "https://assets.payfurl.com",
|
|
20
|
+
cssUrl: "https://assets.payfurl.com/v4.9.5/js/",
|
|
21
|
+
url: "https://assets.payfurl.com/v4.9.5/iframe/index.html",
|
|
22
|
+
secureUrl: "https://assets.payfurl.com/v4.9.5/secure/index.html",
|
|
23
|
+
redirectUrl: "https://assets.payfurl.com/v4.9.5/checkout/redirect.html",
|
|
24
|
+
apiUrl: "https://sandbox-api.payfurl.com",
|
|
25
|
+
errorUrl: "https://gujl7xo5fhpkjaain4swyiymt40loyia.lambda-url.ap-southeast-2.on.aws"
|
|
26
|
+
}, r = {
|
|
27
|
+
baseUrl: "https://assets.payfurl.com",
|
|
28
|
+
cssUrl: "https://assets.payfurl.com/v4.9.5/js/",
|
|
29
|
+
url: "https://assets.payfurl.com/v4.9.5/iframe/index.html",
|
|
30
|
+
secureUrl: "https://assets.payfurl.com/v4.9.5/secure/index.html",
|
|
31
|
+
redirectUrl: "https://assets.payfurl.com/v4.9.5/checkout/redirect.html",
|
|
32
|
+
apiUrl: "https://api.payfurl.com",
|
|
33
|
+
errorUrl: "https://4rvkh6tupgcmqk3b2igkpdi2zi0mveyg.lambda-url.ap-southeast-2.on.aws"
|
|
34
|
+
}, i = {
|
|
35
|
+
name: "@payfurl/client",
|
|
36
|
+
private: !1,
|
|
37
|
+
version: "4.9.5",
|
|
38
|
+
files: ["dist/sdk"],
|
|
39
|
+
type: "module",
|
|
40
|
+
main: "./dist/sdk/payfurl.umd.js",
|
|
41
|
+
module: "./dist/sdk/payfurl.es.js",
|
|
42
|
+
types: "./dist/sdk/payfurl.d.ts",
|
|
43
|
+
exports: { ".": {
|
|
44
|
+
import: "./dist/sdk/payfurl.es.js",
|
|
45
|
+
require: "./dist/sdk/payfurl.umd.js"
|
|
46
|
+
} },
|
|
47
|
+
scripts: {
|
|
48
|
+
dev: "node .build/config-local.mjs && vite -c vite.iframe.config.ts",
|
|
49
|
+
"build-iframe": "node .build/config-local.mjs && vite build -c vite.iframe.config.ts --emptyOutDir",
|
|
50
|
+
"build-secure": "node .build/config-local.mjs && vite build -c vite.secure.config.ts --emptyOutDir",
|
|
51
|
+
"build-sdk": "node .build/config-local.mjs && vite build -c vite.sdk.config.ts",
|
|
52
|
+
build: "npm run build-all",
|
|
53
|
+
"build-all": "npm run build-iframe && npm run build-secure && npm run build-sdk",
|
|
54
|
+
preview: "vite preview",
|
|
55
|
+
server: "python3 -m http.server 3001",
|
|
56
|
+
test: "node .build/config-local.mjs && jest",
|
|
57
|
+
"update-packages": "ncu -u && npm update --save",
|
|
58
|
+
remove_js: "git ls-files -o --exclude-standard | grep '.js' | xargs rm",
|
|
59
|
+
remove_d_ts: "git ls-files -o --exclude-standard | grep '.d.ts' | xargs rm"
|
|
60
|
+
},
|
|
61
|
+
dependencies: {
|
|
62
|
+
dayjs: "^1.11.13",
|
|
63
|
+
vue: "^3.5.10"
|
|
64
|
+
},
|
|
65
|
+
devDependencies: {
|
|
66
|
+
"@babel/preset-env": "^7.25.4",
|
|
67
|
+
"@babel/types": "^7.25.6",
|
|
68
|
+
"@jest/globals": "^29.7.0",
|
|
69
|
+
"@rollup/plugin-typescript": "^12.1.0",
|
|
70
|
+
"@types/applepayjs": "^14.0.8",
|
|
71
|
+
"@types/jest": "^29.5.13",
|
|
72
|
+
"@types/jest-when": "^3.5.5",
|
|
73
|
+
"@types/node": "^22.7.4",
|
|
74
|
+
"@vitejs/plugin-vue": "^6.0.7",
|
|
75
|
+
"@vue/eslint-config-prettier": "^9.0.0",
|
|
76
|
+
"@vue/eslint-config-typescript": "^13.0.0",
|
|
77
|
+
"@vue/vue3-jest": "^29.2.6",
|
|
78
|
+
"babel-jest": "^29.7.0",
|
|
79
|
+
eslint: "^8.56.0",
|
|
80
|
+
"eslint-plugin-vue": "^9.28.0",
|
|
81
|
+
jest: "^29.7.0",
|
|
82
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
83
|
+
"jest-when": "^3.6.0",
|
|
84
|
+
prettier: "^3.3.3",
|
|
85
|
+
"rollup-plugin-visualizer": "^5.12.0",
|
|
86
|
+
"ts-jest": "^29.2.5",
|
|
87
|
+
"ts-node": "^10.9.2",
|
|
88
|
+
tslib: "^2.8.1",
|
|
89
|
+
typescript: "^5.6.2",
|
|
90
|
+
vite: "^8.0.16",
|
|
91
|
+
"vite-plugin-checker": "^0.8.0",
|
|
92
|
+
"vue-tsc": "^2.1.6"
|
|
93
|
+
}
|
|
94
|
+
}, a;
|
|
95
|
+
(function(e) {
|
|
96
|
+
e.LOCAL = "local", e.DEVELOPMENT = "development", e.SANDBOX = "sandbox", e.PRODUCTION = "production";
|
|
97
|
+
})(a ||= {});
|
|
98
|
+
var o = {
|
|
99
|
+
[a.LOCAL]: e,
|
|
100
|
+
[a.DEVELOPMENT]: t,
|
|
101
|
+
[a.SANDBOX]: n,
|
|
102
|
+
[a.PRODUCTION]: r
|
|
103
|
+
};
|
|
104
|
+
function s(e) {
|
|
105
|
+
let t = o[e];
|
|
106
|
+
return t && Object.fromEntries(Object.entries(t).map(([e, t]) => [e, t.split("{VERSION}").join(i.version)]));
|
|
107
|
+
}
|
|
108
|
+
function c(e) {
|
|
109
|
+
let t = o[e];
|
|
110
|
+
return t ||= o[a.PRODUCTION], t.errorUrl;
|
|
111
|
+
}
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region src/utils/httpInvoker.ts
|
|
114
|
+
var l = class {
|
|
115
|
+
publicKey = "";
|
|
116
|
+
version = "";
|
|
117
|
+
regionResolver = null;
|
|
118
|
+
constructor(e, t, n) {
|
|
119
|
+
this.publicKey = e || "", this.version = t || "", this.regionResolver = n || null;
|
|
120
|
+
}
|
|
121
|
+
invoke(e, t, n, r, i, a) {
|
|
122
|
+
let o = new XMLHttpRequest();
|
|
123
|
+
o || i?.(0, ""), o.onreadystatechange = function() {
|
|
124
|
+
o.readyState === 4 && (o.status === 200 || o.status === 201 ? r?.(o.status, o.responseText) : i?.(o.status, o.responseText));
|
|
125
|
+
};
|
|
126
|
+
let s = new URL(e);
|
|
127
|
+
if (this.regionResolver && (s.hostname = new URL(this.regionResolver.getRegionUrl()).hostname), o.open(t, s.toString()), o.setRequestHeader("Content-Type", "application/json"), this.publicKey && o.setRequestHeader("x-publickey", this.publicKey), this.version && o.setRequestHeader("sdk-version", this.version), a) for (let [e, t] of Object.entries(a)) o.setRequestHeader(e, t);
|
|
128
|
+
o.send(String(n));
|
|
129
|
+
}
|
|
130
|
+
}, u = { domain: "payfurl.com" }, d = {
|
|
131
|
+
[a.DEVELOPMENT]: {
|
|
132
|
+
AU: `https://develop-api-au.${u.domain}`,
|
|
133
|
+
DEFAULT: `https://develop-api.${u.domain}`
|
|
134
|
+
},
|
|
135
|
+
[a.SANDBOX]: {
|
|
136
|
+
AU: `https://sandbox-api-au.${u.domain}`,
|
|
137
|
+
DEFAULT: `https://sandbox-api.${u.domain}`
|
|
138
|
+
},
|
|
139
|
+
[a.PRODUCTION]: {
|
|
140
|
+
AU: `https://api-au.${u.domain}`,
|
|
141
|
+
DEFAULT: `https://api.${u.domain}`
|
|
142
|
+
},
|
|
143
|
+
[a.LOCAL]: { DEFAULT: "https://localhost:5001" }
|
|
144
|
+
}, f = class {
|
|
145
|
+
environment;
|
|
146
|
+
location;
|
|
147
|
+
constructor(e, t) {
|
|
148
|
+
this.environment = e.toLowerCase(), this.location = t.toUpperCase();
|
|
149
|
+
}
|
|
150
|
+
getRegionUrl() {
|
|
151
|
+
if (!d[this.environment]) throw Error(`Invalid environment: ${this.environment}`);
|
|
152
|
+
return d[this.environment][this.location] || d[this.environment].DEFAULT;
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
//#endregion
|
|
156
|
+
//#region src/utils/strings.ts
|
|
157
|
+
function p(e) {
|
|
158
|
+
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
159
|
+
}
|
|
160
|
+
function m(e) {
|
|
161
|
+
return e.match(/-([a-z]{2})$/)?.[1] || "";
|
|
162
|
+
}
|
|
163
|
+
function h(e) {
|
|
164
|
+
let t = e.match(/\+(9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)(\d{1,14})$/);
|
|
165
|
+
return t ? [t[1], t[2]] : [e];
|
|
166
|
+
}
|
|
167
|
+
function g(e) {
|
|
168
|
+
return e ? e.replace(/(\d{4})\d{8}(\d{4})/, "$1 **** **** $2") : "";
|
|
169
|
+
}
|
|
170
|
+
function _(e) {
|
|
171
|
+
return e.replace(/\s/g, "");
|
|
172
|
+
}
|
|
173
|
+
//#endregion
|
|
174
|
+
export { h as a, a as c, i as d, g as i, s as l, p as n, f as o, m as r, l as s, _ as t, c as u };
|
package/dist/sdk/style.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
svg#paypal[data-v-2b840669],svg[data-v-6a1e8b23],svg[data-v-f87e02ce],svg#payto-icon[data-v-0b2d8aa0]{--size:30px;width:var(--size);height:var(--size)}.payfurl-sdk-combined-container input[type=radio][data-v-240dc514]{min-width:auto;height:auto}.payfurl-sdk-combined-container[data-v-240dc514]{border:var(--border);border-radius:5px;flex-direction:column;width:fit-content;max-width:100%;padding:15px;display:flex}.payfurl-sdk-combined-tab[data-v-240dc514]{cursor:pointer;width:auto;height:52px;color:var(--color-text);border-top:1px solid var(--border-color);background-color:#fff;place-items:center;padding:0 10px;display:flex}.payfurl-sdk-combined-tab[data-v-240dc514]:first-child{border-top:0}.payfurl-sdk-combined-tab .combined-tab-title[data-v-240dc514]{flex-direction:column;width:fit-content;height:fit-content;margin-right:50px;display:flex}.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 (width<=400px){.payfurl-sdk-container-component[data-v-240dc514]{min-height:50px;padding:0}}.message[data-v-ae4be0f9]{color:var(--color-error);background:0 0;margin-bottom:20px;font-size:20px;font-weight:700}.message[data-v-6a4e1608]{color:var(--color-success);background:0 0;margin-bottom:20px;font-size:20px;font-weight:700}.masked[data-v-16bb7d59]{z-index:999999;background-color:#0009;width:100vw;height:100vh;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;width:var(--spinner-size);height:var(--spinner-size);left:calc(50vw - var(--spinner-size2)/2);top:calc(50vh - var(--spinner-size2)/2);display:inline-block;position:absolute}.lds-spinner.single[data-v-16bb7d59]{--spinner-size:50px;--spinner-size2:25px;--spinner-size3:14px;--spinner-width:3px;--spinner-left:23px;width:var(--spinner-size);height:var(--spinner-size);left:calc(50% - var(--spinner-size2)/2);display:inline-block;position:relative;top:0}.message[data-v-16bb7d59]{text-align:center;color:#fff;width:100vw;font-size:2em;position:absolute;top:calc(50vh - 75px)}.lds-spinner div[data-v-16bb7d59]{transform-origin:var(--spinner-size2) var(--spinner-size2);animation:1.2s linear infinite lds-spinner-16bb7d59}.lds-spinner div[data-v-16bb7d59]:after{content:" ";top:3px;left:var(--spinner-left);width:var(--spinner-width);height:var(--spinner-size3);background:#bcdff1;border-radius:20%;display:block;position:absolute}.lds-spinner div[data-v-16bb7d59]:first-child{animation-delay:-1.1s;transform:rotate(0)}.lds-spinner div[data-v-16bb7d59]:nth-child(2){animation-delay:-1s;transform:rotate(30deg)}.lds-spinner div[data-v-16bb7d59]:nth-child(3){animation-delay:-.9s;transform:rotate(60deg)}.lds-spinner div[data-v-16bb7d59]:nth-child(4){animation-delay:-.8s;transform:rotate(90deg)}.lds-spinner div[data-v-16bb7d59]:nth-child(5){animation-delay:-.7s;transform:rotate(120deg)}.lds-spinner div[data-v-16bb7d59]:nth-child(6){animation-delay:-.6s;transform:rotate(150deg)}.lds-spinner div[data-v-16bb7d59]:nth-child(7){animation-delay:-.5s;transform:rotate(180deg)}.lds-spinner div[data-v-16bb7d59]:nth-child(8){animation-delay:-.4s;transform:rotate(210deg)}.lds-spinner div[data-v-16bb7d59]:nth-child(9){animation-delay:-.3s;transform:rotate(240deg)}.lds-spinner div[data-v-16bb7d59]:nth-child(10){animation-delay:-.2s;transform:rotate(270deg)}.lds-spinner div[data-v-16bb7d59]:nth-child(11){animation-delay:-.1s;transform:rotate(300deg)}.lds-spinner div[data-v-16bb7d59]:nth-child(12){animation-delay:0s;transform:rotate(330deg)}@keyframes lds-spinner-16bb7d59{0%{opacity:1}to{opacity:0}}iframe#payfurl-card-iframe{border:none;width:100%;overflow:hidden}div#payfurl-payto-form[data-v-3e5bba92]{padding-bottom:20px}.small[data-v-3e5bba92]{font-size:.8em}div#payfurl-payto-agreement[data-v-f06289bf]{padding-bottom:20px}.message[data-v-f06289bf]{color:var(--color-text);background:0 0;margin-bottom:20px;font-size:20px;font-weight:700}svg[data-v-d7e8386b]{fill:#000;stroke:#0000;width:20px;height:20px}.modal-mask[data-v-2b2c8fc7]{--color-hr:#ddd;z-index:9999;background-color:#000c;justify-content:center;align-items:normal;width:100vw;height:100vh;transition:opacity .3s;display:flex;position:fixed;top:0;left:0}.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]{background-color:#fff;flex-direction:column;min-width:min(450px,90vw);max-height:calc(100vh - 60px);display:flex;position:relative}.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]{border-top:1px solid var(--color-hr);justify-content:flex-end;gap:10px;display:flex}.modal-mask .modal-wrapper .modal-content .modal-body[data-v-2b2c8fc7]{flex:1;padding:0;position:relative;overflow-y:auto}.modal-mask .modal-wrapper .modal-content .main-title[data-v-2b2c8fc7]{text-overflow:ellipsis;white-space:nowrap;color:#000;padding-right:35px;font-size:20px;overflow:hidden}.modal-mask .modal-wrapper .modal-content .close-icon[data-v-2b2c8fc7]{cursor:pointer;position:absolute;top:29px;right:27px}.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 (height<=460px){.modal-mask .modal-wrapper[data-v-2b2c8fc7]{max-height:none;margin:auto}.modal-mask .modal-wrapper .modal-content[data-v-2b2c8fc7]{background-color:#fff;display:block;position:relative;overflow-y:auto}.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]{z-index:9998;background-color:#fff;width:465px;position:fixed}.modal-mask .modal-wrapper .modal-content .modal-body[data-v-2b2c8fc7]{max-height:none;margin-top:90px;overflow-y:visible}}iframe[data-v-5d26ad8f]{border:0;width:100%;height:calc(100% - 10px);overflow:hidden}div.payfurl-checkout-form[data-v-8fc4cc32]{padding-bottom:20px;position:relative}button[data-v-8fc4cc32]{color:#fff;text-align:center;cursor:pointer;background-color:#459ad8;border:0;border-radius:4px;width:100%;height:40px;font-family:Avenir,Helvetica,Arial,sans-serif;font-size:1.1em;font-weight:400}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]{vertical-align:middle;height:20px;margin-right:5px}.click2pay-logo img[data-v-cb006d2b]:first-child{margin-right:10px}.payfurl-form[data-v-693ba623]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--color-text);background-color:var(--background-color);box-sizing:border-box;font-family:Avenir,Helvetica,Arial,sans-serif;font-size:1em;font-weight:400;line-height:1.5}.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]{border:var(--border);width:100%;max-width:100%;color:var(--color-input-text);background-color:#fff;border-radius:4px;align-items:center;height:2.5em;margin:0;padding:calc(.5em - 1px) calc(.75em - 1px);font-size:1rem;line-height:1.5;position:relative;box-shadow:inset 0 .0625em .125em #0a0a0a0d}.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] ::placeholder{color:#3b3b3b4d}.payfurl-form[data-v-693ba623] :placeholder-shown{color:#3b3b3b4d}.payfurl-form[data-v-693ba623] :-ms-placeholder-shown{color:#3b3b3b4d}.payfurl-form .error[data-v-693ba623]{color:var(--color-error);font-size:1.2em}.payfurl-form .success[data-v-693ba623]{color:var(--color-success);font-size:1.2em}.payfurl-form .info-message[data-v-693ba623]{color:var(--color-text);font-size:.8em}.payfurl-form .group[data-v-693ba623]{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.payfurl-form .container-form[data-v-693ba623]{width:300px;max-width:100%;position:relative}.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:#0f87c91a;--input-border:#dbdbdb;--input-border-hover:#b5b5b5;color:var(--color-text-light);border:1px solid var(--input-border);white-space:nowrap;border-radius:5px;align-items:center;transition:color .5s,border .5s;display:flex}.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 .popup-error[data-v-693ba623]{text-align:center;color:#fff;background-color:var(--color-error-background);--b:1em;--h:1em;--p:50%;--r:.5em;--c:var(--color-error-background);border-radius:var(--r);width:fit-content;clip-path:polygon(0 100%, 0 0, 100% 0, 100% 100%, min(100%, var(--p) + var(--b) / 2) 100%, var(--p) calc(100% + var(--h)), max(0%, var(--p) - var(--b) / 2) 100%);background:var(--c);border-image:conic-gradient(var(--c) 0 0) fill 0/ var(--r) calc(100% - var(--p) - var(--b) / 2) 0 calc(var(--p) - var(--b) / 2)/ 0 0 var(--h) 0;margin-inline:auto;padding:5px 10px;font-size:.8em;position:absolute;top:-20px;left:0;right:0}.payfurl-form .row>div[data-v-693ba623],.payfurl-form .group>div[data-v-693ba623]{position:relative}.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]{gap:10px;padding:0;display:flex}.payment-method-info[data-v-7894e1cd]{cursor:pointer;align-items:center;gap:10px;height:40px;display:flex}.payment-method-info img[data-v-7894e1cd]{flex:min-content;max-width:50px;height:40px;margin-left:0}.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-d3f0944f]{color:#000;font-size:.8em;text-decoration:underline}a.blue[data-v-d3f0944f]{color:#00f;margin-top:10px;font-size:1em;text-decoration:none}.saved-payment-methods .title[data-v-d3f0944f]{margin-top:10px;font-weight:700}.saved-payment-methods[data-v-d3f0944f]{flex-direction:column;gap:10px;width:max-content;max-width:100vw;margin:20px 0;display:flex}.saved-payment-methods .payment-method-container[data-v-d3f0944f]{flex-wrap:nowrap;gap:20px;margin:2px;padding:5px;display:flex}.saved-payment-methods .payment-method-container.error[data-v-d3f0944f]{color:initial;flex-wrap:wrap}.saved-payment-methods .payment-method-container[data-v-d3f0944f]:hover{background-color:#f0f0f0}.error[data-v-d3f0944f]{color:var(--color-error);flex-basis:100%;margin:0;padding:0}iframe[data-v-07081e85]{border:none;width:250px;height:400px;overflow:hidden}.mask[data-v-07081e85]{z-index:9999;background-color:#000c;justify-content:center;align-items:normal;width:100vw;height:100vh;transition:opacity .3s;display:flex;position:fixed;top:0;left:0}.wrapper[data-v-07081e85]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-07081e85]{background:#fff;justify-content:center;align-items:center;width:300px;max-width:100%;display:flex;position:relative}svg[data-v-07081e85]{cursor:pointer;position:absolute;top:5px;right:5px}.mask[data-v-8a0b6dcb]{z-index:9999;background-color:#000c;justify-content:center;align-items:normal;width:100vw;height:100vh;transition:opacity .3s;display:flex;position:fixed;top:0;left:0}.wrapper[data-v-8a0b6dcb]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-8a0b6dcb]{background:#fff;justify-content:center;align-items:center;width:450px;max-width:100%;height:450px;max-height:100%;display:flex;position:relative}svg[data-v-8a0b6dcb]{cursor:pointer;position:absolute;top:5px;right:5px}iframe[data-v-8ededb9d]{border:none;width:650px;height:400px;overflow:hidden}.mask[data-v-8ededb9d]{z-index:9999;background-color:#000c;justify-content:center;align-items:normal;width:100vw;height:100vh;transition:opacity .3s;display:flex;position:fixed;top:0;left:0}.wrapper[data-v-8ededb9d]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-8ededb9d]{background:#fff;justify-content:center;align-items:center;width:700px;display:flex;position:relative}svg[data-v-8ededb9d]{cursor:pointer;position:absolute;top:5px;right:5px}iframe[data-v-cf5aa816]{border:none;overflow:hidden}.mask[data-v-cf5aa816]{z-index:9999;background-color:#000c;justify-content:center;align-items:normal;width:100vw;height:100vh;transition:opacity .3s;display:flex;position:fixed;top:0;left:0}.wrapper[data-v-cf5aa816]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-cf5aa816]{background:#fff;justify-content:center;align-items:center;width:100vw;display:flex;position:relative}svg[data-v-cf5aa816]{cursor:pointer;position:absolute;top:5px;right:5px}iframe[data-v-3b52be97]{border:none;width:650px;height:400px;overflow:hidden}.mask[data-v-3b52be97]{z-index:9999;background-color:#000c;justify-content:center;align-items:normal;width:100vw;height:100vh;transition:opacity .3s;display:flex;position:fixed;top:0;left:0}.wrapper[data-v-3b52be97]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-3b52be97]{background:#fff;justify-content:center;align-items:center;width:700px;display:flex;position:relative}svg[data-v-3b52be97]{cursor:pointer;position:absolute;top:5px;right:5px}.payfurl-form{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--color-text);background-color:var(--background-color);box-sizing:border-box;font-family:Avenir,Helvetica,Arial,sans-serif;font-size:1em;font-weight:400;line-height:1.5}.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{border:var(--border);width:100%;max-width:100%;color:var(--color-input-text);background-color:#fff;border-radius:4px;align-items:center;height:2.5em;margin:0;padding:calc(.5em - 1px) calc(.75em - 1px);font-size:1rem;line-height:1.5;position:relative;box-shadow:inset 0 .0625em .125em #0a0a0a0d}.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 ::placeholder{color:#3b3b3b4d}.payfurl-form :placeholder-shown{color:#3b3b3b4d}.payfurl-form :-ms-placeholder-shown{color:#3b3b3b4d}.payfurl-form .error{color:var(--color-error);font-size:1.2em}.payfurl-form .success{color:var(--color-success);font-size:1.2em}.payfurl-form .info-message{color:var(--color-text);font-size:.8em}.payfurl-form .group{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.payfurl-form .container-form{width:300px;max-width:100%;position:relative}.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:#0f87c91a;--input-border:#dbdbdb;--input-border-hover:#b5b5b5;color:var(--color-text-light);border:1px solid var(--input-border);white-space:nowrap;border-radius:5px;align-items:center;transition:color .5s,border .5s;display:flex}.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}.payfurl-form .popup-error{text-align:center;color:#fff;background-color:var(--color-error-background);--b:1em;--h:1em;--p:50%;--r:.5em;--c:var(--color-error-background);border-radius:var(--r);width:fit-content;clip-path:polygon(0 100%, 0 0, 100% 0, 100% 100%, min(100%, var(--p) + var(--b) / 2) 100%, var(--p) calc(100% + var(--h)), max(0%, var(--p) - var(--b) / 2) 100%);background:var(--c);border-image:conic-gradient(var(--c) 0 0) fill 0/ var(--r) calc(100% - var(--p) - var(--b) / 2) 0 calc(var(--p) - var(--b) / 2)/ 0 0 var(--h) 0;margin-inline:auto;padding:5px 10px;font-size:.8em;position:absolute;top:-20px;left:0;right:0}.payfurl-form .row>div,.payfurl-form .group>div{position:relative}body,body.common{--background-color:white;--color-text:#4a4a4a;--color-text-light:#777;--color-input-text:#4a4a4a;--border:1px solid #dbdbdb;--border-color:#dbdbdb;--border-hover:1px solid #363636;--color-error:red;--color-success:#48b608;--color-error-background:#b20e2e}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;--color-error-background:#b20e2e}.modal-mask[data-v-0699f67d]{--color-hr:#ddd;z-index:9999;background-color:#000c;justify-content:center;align-items:normal;width:100vw;height:100vh;transition:opacity .3s;display:flex;position:fixed;top:0;left:0}.modal-mask .modal-wrapper[data-v-0699f67d]{width:400px;height:calc(100vh - 20px);margin:auto}iframe[data-v-0699f67d]{border:0;width:100%;height:calc(100% - 10px);overflow:hidden}
|
|
1
|
+
svg#paypal[data-v-2b840669],svg[data-v-6a1e8b23],svg[data-v-f87e02ce],svg#payto-icon[data-v-0b2d8aa0]{--size:30px;width:var(--size);height:var(--size)}.payfurl-sdk-combined-container input[type=radio][data-v-240dc514]{min-width:auto;height:auto}.payfurl-sdk-combined-container[data-v-240dc514]{border:var(--border);border-radius:5px;flex-direction:column;width:fit-content;max-width:100%;padding:15px;display:flex}.payfurl-sdk-combined-tab[data-v-240dc514]{cursor:pointer;width:auto;height:52px;color:var(--color-text);border-top:1px solid var(--border-color);background-color:#fff;place-items:center;padding:0 10px;display:flex}.payfurl-sdk-combined-tab[data-v-240dc514]:first-child{border-top:0}.payfurl-sdk-combined-tab .combined-tab-title[data-v-240dc514]{flex-direction:column;width:fit-content;height:fit-content;margin-right:50px;display:flex}.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 (width<=400px){.payfurl-sdk-container-component[data-v-240dc514]{min-height:50px;padding:0}}.message[data-v-ae4be0f9]{color:var(--color-error);background:0 0;margin-bottom:20px;font-size:20px;font-weight:700}.message[data-v-6a4e1608]{color:var(--color-success);background:0 0;margin-bottom:20px;font-size:20px;font-weight:700}.masked[data-v-16bb7d59]{z-index:999999;background-color:#0009;width:100vw;height:100vh;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;width:var(--spinner-size);height:var(--spinner-size);left:calc(50vw - var(--spinner-size2)/2);top:calc(50vh - var(--spinner-size2)/2);display:inline-block;position:absolute}.lds-spinner.single[data-v-16bb7d59]{--spinner-size:50px;--spinner-size2:25px;--spinner-size3:14px;--spinner-width:3px;--spinner-left:23px;width:var(--spinner-size);height:var(--spinner-size);left:calc(50% - var(--spinner-size2)/2);display:inline-block;position:relative;top:0}.message[data-v-16bb7d59]{text-align:center;color:#fff;width:100vw;font-size:2em;position:absolute;top:calc(50vh - 75px)}.lds-spinner div[data-v-16bb7d59]{transform-origin:var(--spinner-size2) var(--spinner-size2);animation:1.2s linear infinite lds-spinner-16bb7d59}.lds-spinner div[data-v-16bb7d59]:after{content:" ";top:3px;left:var(--spinner-left);width:var(--spinner-width);height:var(--spinner-size3);background:#bcdff1;border-radius:20%;display:block;position:absolute}.lds-spinner div[data-v-16bb7d59]:first-child{animation-delay:-1.1s;transform:rotate(0)}.lds-spinner div[data-v-16bb7d59]:nth-child(2){animation-delay:-1s;transform:rotate(30deg)}.lds-spinner div[data-v-16bb7d59]:nth-child(3){animation-delay:-.9s;transform:rotate(60deg)}.lds-spinner div[data-v-16bb7d59]:nth-child(4){animation-delay:-.8s;transform:rotate(90deg)}.lds-spinner div[data-v-16bb7d59]:nth-child(5){animation-delay:-.7s;transform:rotate(120deg)}.lds-spinner div[data-v-16bb7d59]:nth-child(6){animation-delay:-.6s;transform:rotate(150deg)}.lds-spinner div[data-v-16bb7d59]:nth-child(7){animation-delay:-.5s;transform:rotate(180deg)}.lds-spinner div[data-v-16bb7d59]:nth-child(8){animation-delay:-.4s;transform:rotate(210deg)}.lds-spinner div[data-v-16bb7d59]:nth-child(9){animation-delay:-.3s;transform:rotate(240deg)}.lds-spinner div[data-v-16bb7d59]:nth-child(10){animation-delay:-.2s;transform:rotate(270deg)}.lds-spinner div[data-v-16bb7d59]:nth-child(11){animation-delay:-.1s;transform:rotate(300deg)}.lds-spinner div[data-v-16bb7d59]:nth-child(12){animation-delay:0s;transform:rotate(330deg)}@keyframes lds-spinner-16bb7d59{0%{opacity:1}to{opacity:0}}iframe#payfurl-card-iframe{border:none;width:100%;overflow:hidden}div#payfurl-payto-form[data-v-3e5bba92]{padding-bottom:20px}.small[data-v-3e5bba92]{font-size:.8em}div#payfurl-payto-agreement[data-v-f06289bf]{padding-bottom:20px}.message[data-v-f06289bf]{color:var(--color-text);background:0 0;margin-bottom:20px;font-size:20px;font-weight:700}svg[data-v-d7e8386b]{fill:#000;stroke:#0000;width:20px;height:20px}.modal-mask[data-v-2b2c8fc7]{--color-hr:#ddd;z-index:9999;background-color:#000c;justify-content:center;align-items:normal;width:100vw;height:100vh;transition:opacity .3s;display:flex;position:fixed;top:0;left:0}.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]{background-color:#fff;flex-direction:column;min-width:min(450px,90vw);max-height:calc(100vh - 60px);display:flex;position:relative}.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]{border-top:1px solid var(--color-hr);justify-content:flex-end;gap:10px;display:flex}.modal-mask .modal-wrapper .modal-content .modal-body[data-v-2b2c8fc7]{flex:1;padding:0;position:relative;overflow-y:auto}.modal-mask .modal-wrapper .modal-content .main-title[data-v-2b2c8fc7]{text-overflow:ellipsis;white-space:nowrap;color:#000;padding-right:35px;font-size:20px;overflow:hidden}.modal-mask .modal-wrapper .modal-content .close-icon[data-v-2b2c8fc7]{cursor:pointer;position:absolute;top:29px;right:27px}.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 (height<=460px){.modal-mask .modal-wrapper[data-v-2b2c8fc7]{max-height:none;margin:auto}.modal-mask .modal-wrapper .modal-content[data-v-2b2c8fc7]{background-color:#fff;display:block;position:relative;overflow-y:auto}.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]{z-index:9998;background-color:#fff;width:465px;position:fixed}.modal-mask .modal-wrapper .modal-content .modal-body[data-v-2b2c8fc7]{max-height:none;margin-top:90px;overflow-y:visible}}iframe[data-v-5d26ad8f]{border:0;width:100%;height:calc(100% - 10px);overflow:hidden}div.payfurl-checkout-form[data-v-8fc4cc32]{padding-bottom:20px;position:relative}button[data-v-8fc4cc32]{color:#fff;text-align:center;cursor:pointer;background-color:#459ad8;border:0;border-radius:4px;width:100%;height:40px;font-family:Avenir,Helvetica,Arial,sans-serif;font-size:1.1em;font-weight:400}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]{vertical-align:middle;height:20px;margin-right:5px}.click2pay-logo img[data-v-cb006d2b]:first-child{margin-right:10px}.payfurl-form[data-v-693ba623]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--color-text);background-color:var(--background-color);box-sizing:border-box;font-family:Avenir,Helvetica,Arial,sans-serif;font-size:1em;font-weight:400;line-height:1.5}.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]{border:var(--border);width:100%;max-width:100%;color:var(--color-input-text);background-color:#fff;border-radius:4px;align-items:center;height:2.5em;margin:0;padding:calc(.5em - 1px) calc(.75em - 1px);font-size:1rem;line-height:1.5;position:relative;box-shadow:inset 0 .0625em .125em #0a0a0a0d}.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] ::placeholder{color:#3b3b3b4d}.payfurl-form[data-v-693ba623] :placeholder-shown{color:#3b3b3b4d}.payfurl-form[data-v-693ba623] :-ms-placeholder-shown{color:#3b3b3b4d}.payfurl-form .error[data-v-693ba623]{color:var(--color-error);font-size:1.2em}.payfurl-form .success[data-v-693ba623]{color:var(--color-success);font-size:1.2em}.payfurl-form .info-message[data-v-693ba623]{color:var(--color-text);font-size:.8em}.payfurl-form .group[data-v-693ba623]{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.payfurl-form .container-form[data-v-693ba623]{width:300px;max-width:100%;position:relative}.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:#0f87c91a;--input-border:#dbdbdb;--input-border-hover:#b5b5b5;color:var(--color-text-light);border:1px solid var(--input-border);white-space:nowrap;border-radius:5px;align-items:center;transition:color .5s,border .5s;display:flex}.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 .popup-error[data-v-693ba623]{text-align:center;color:#fff;background-color:var(--color-error-background);--b:1em;--h:1em;--p:50%;--r:.5em;--c:var(--color-error-background);border-radius:var(--r);width:fit-content;clip-path:polygon(0 100%, 0 0, 100% 0, 100% 100%, min(100%, var(--p) + var(--b) / 2) 100%, var(--p) calc(100% + var(--h)), max(0%, var(--p) - var(--b) / 2) 100%);background:var(--c);border-image:conic-gradient(var(--c) 0 0) fill 0/ var(--r) calc(100% - var(--p) - var(--b) / 2) 0 calc(var(--p) - var(--b) / 2)/ 0 0 var(--h) 0;margin-inline:auto;padding:5px 10px;font-size:.8em;position:absolute;top:-20px;left:0;right:0}.payfurl-form .row>div[data-v-693ba623],.payfurl-form .group>div[data-v-693ba623]{position:relative}.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]{gap:10px;padding:0;display:flex}.payment-method-info[data-v-7894e1cd]{cursor:pointer;align-items:center;gap:10px;height:40px;display:flex}.payment-method-info img[data-v-7894e1cd]{flex:min-content;max-width:50px;height:40px;margin-left:0}.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-d3f0944f]{color:#000;font-size:.8em;text-decoration:underline}a.blue[data-v-d3f0944f]{color:#00f;margin-top:10px;font-size:1em;text-decoration:none}.saved-payment-methods .title[data-v-d3f0944f]{margin-top:10px;font-weight:700}.saved-payment-methods[data-v-d3f0944f]{flex-direction:column;gap:10px;width:max-content;max-width:100vw;margin:20px 0;display:flex}.saved-payment-methods .payment-method-container[data-v-d3f0944f]{flex-wrap:nowrap;gap:20px;margin:2px;padding:5px;display:flex}.saved-payment-methods .payment-method-container.error[data-v-d3f0944f]{color:initial;flex-wrap:wrap}.saved-payment-methods .payment-method-container[data-v-d3f0944f]:hover{background-color:#f0f0f0}.error[data-v-d3f0944f]{color:var(--color-error);flex-basis:100%;margin:0;padding:0}iframe[data-v-07081e85]{border:none;width:250px;height:400px;overflow:hidden}.mask[data-v-07081e85]{z-index:9999;background-color:#000c;justify-content:center;align-items:normal;width:100vw;height:100vh;transition:opacity .3s;display:flex;position:fixed;top:0;left:0}.wrapper[data-v-07081e85]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-07081e85]{background:#fff;justify-content:center;align-items:center;width:300px;max-width:100%;display:flex;position:relative}svg[data-v-07081e85]{cursor:pointer;position:absolute;top:5px;right:5px}.mask[data-v-8a0b6dcb]{z-index:9999;background-color:#000c;justify-content:center;align-items:normal;width:100vw;height:100vh;transition:opacity .3s;display:flex;position:fixed;top:0;left:0}.wrapper[data-v-8a0b6dcb]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-8a0b6dcb]{background:#fff;justify-content:center;align-items:center;width:450px;max-width:100%;height:450px;max-height:100%;display:flex;position:relative}svg[data-v-8a0b6dcb]{cursor:pointer;position:absolute;top:5px;right:5px}iframe[data-v-8ededb9d]{border:none;width:650px;height:400px;overflow:hidden}.mask[data-v-8ededb9d]{z-index:9999;background-color:#000c;justify-content:center;align-items:normal;width:100vw;height:100vh;transition:opacity .3s;display:flex;position:fixed;top:0;left:0}.wrapper[data-v-8ededb9d]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-8ededb9d]{background:#fff;justify-content:center;align-items:center;width:700px;display:flex;position:relative}svg[data-v-8ededb9d]{cursor:pointer;position:absolute;top:5px;right:5px}iframe[data-v-cf5aa816]{border:none;overflow:hidden}.mask[data-v-cf5aa816]{z-index:9999;background-color:#000c;justify-content:center;align-items:normal;width:100vw;height:100vh;transition:opacity .3s;display:flex;position:fixed;top:0;left:0}.wrapper[data-v-cf5aa816]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-cf5aa816]{background:#fff;justify-content:center;align-items:center;width:100vw;display:flex;position:relative}svg[data-v-cf5aa816]{cursor:pointer;position:absolute;top:5px;right:5px}iframe[data-v-cbd5b108]{border:none;width:650px;height:400px;overflow:hidden}.mask[data-v-cbd5b108]{z-index:9999;background-color:#000c;justify-content:center;align-items:normal;width:100vw;height:100vh;transition:opacity .3s;display:flex;position:fixed;top:0;left:0}.wrapper[data-v-cbd5b108]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-cbd5b108]{background:#fff;justify-content:center;align-items:center;width:700px;display:flex;position:relative}svg[data-v-cbd5b108]{cursor:pointer;position:absolute;top:5px;right:5px}.payfurl-form{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--color-text);background-color:var(--background-color);box-sizing:border-box;font-family:Avenir,Helvetica,Arial,sans-serif;font-size:1em;font-weight:400;line-height:1.5}.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{border:var(--border);width:100%;max-width:100%;color:var(--color-input-text);background-color:#fff;border-radius:4px;align-items:center;height:2.5em;margin:0;padding:calc(.5em - 1px) calc(.75em - 1px);font-size:1rem;line-height:1.5;position:relative;box-shadow:inset 0 .0625em .125em #0a0a0a0d}.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 ::placeholder{color:#3b3b3b4d}.payfurl-form :placeholder-shown{color:#3b3b3b4d}.payfurl-form :-ms-placeholder-shown{color:#3b3b3b4d}.payfurl-form .error{color:var(--color-error);font-size:1.2em}.payfurl-form .success{color:var(--color-success);font-size:1.2em}.payfurl-form .info-message{color:var(--color-text);font-size:.8em}.payfurl-form .group{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.payfurl-form .container-form{width:300px;max-width:100%;position:relative}.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:#0f87c91a;--input-border:#dbdbdb;--input-border-hover:#b5b5b5;color:var(--color-text-light);border:1px solid var(--input-border);white-space:nowrap;border-radius:5px;align-items:center;transition:color .5s,border .5s;display:flex}.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}.payfurl-form .popup-error{text-align:center;color:#fff;background-color:var(--color-error-background);--b:1em;--h:1em;--p:50%;--r:.5em;--c:var(--color-error-background);border-radius:var(--r);width:fit-content;clip-path:polygon(0 100%, 0 0, 100% 0, 100% 100%, min(100%, var(--p) + var(--b) / 2) 100%, var(--p) calc(100% + var(--h)), max(0%, var(--p) - var(--b) / 2) 100%);background:var(--c);border-image:conic-gradient(var(--c) 0 0) fill 0/ var(--r) calc(100% - var(--p) - var(--b) / 2) 0 calc(var(--p) - var(--b) / 2)/ 0 0 var(--h) 0;margin-inline:auto;padding:5px 10px;font-size:.8em;position:absolute;top:-20px;left:0;right:0}.payfurl-form .row>div,.payfurl-form .group>div{position:relative}body,body.common{--background-color:white;--color-text:#4a4a4a;--color-text-light:#777;--color-input-text:#4a4a4a;--border:1px solid #dbdbdb;--border-color:#dbdbdb;--border-hover:1px solid #363636;--color-error:red;--color-success:#48b608;--color-error-background:#b20e2e}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;--color-error-background:#b20e2e}.modal-mask[data-v-0699f67d]{--color-hr:#ddd;z-index:9999;background-color:#000c;justify-content:center;align-items:normal;width:100vw;height:100vh;transition:opacity .3s;display:flex;position:fixed;top:0;left:0}.modal-mask .modal-wrapper[data-v-0699f67d]{width:400px;height:calc(100vh - 20px);margin:auto}iframe[data-v-0699f67d]{border:0;width:100%;height:calc(100% - 10px);overflow:hidden}
|
|
2
2
|
/*$vite$:1*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payfurl/client",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "4.9.
|
|
4
|
+
"version": "4.9.5",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/sdk"
|
|
7
7
|
],
|
|
@@ -16,14 +16,15 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
|
-
"dev": "vite -c vite.iframe.config.ts",
|
|
20
|
-
"build-iframe": "vite build -c vite.iframe.config.ts --emptyOutDir",
|
|
21
|
-
"build-secure": "vite build -c vite.secure.config.ts --emptyOutDir",
|
|
22
|
-
"build-sdk": "vite build -c vite.sdk.config.ts",
|
|
19
|
+
"dev": "node .build/config-local.mjs && vite -c vite.iframe.config.ts",
|
|
20
|
+
"build-iframe": "node .build/config-local.mjs && vite build -c vite.iframe.config.ts --emptyOutDir",
|
|
21
|
+
"build-secure": "node .build/config-local.mjs && vite build -c vite.secure.config.ts --emptyOutDir",
|
|
22
|
+
"build-sdk": "node .build/config-local.mjs && vite build -c vite.sdk.config.ts",
|
|
23
|
+
"build": "npm run build-all",
|
|
23
24
|
"build-all": "npm run build-iframe && npm run build-secure && npm run build-sdk",
|
|
24
25
|
"preview": "vite preview",
|
|
25
26
|
"server": "python3 -m http.server 3001",
|
|
26
|
-
"test": "jest",
|
|
27
|
+
"test": "node .build/config-local.mjs && jest",
|
|
27
28
|
"update-packages": "ncu -u && npm update --save",
|
|
28
29
|
"remove_js": "git ls-files -o --exclude-standard | grep '.js' | xargs rm",
|
|
29
30
|
"remove_d_ts": "git ls-files -o --exclude-standard | grep '.d.ts' | xargs rm"
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
"devDependencies": {
|
|
36
37
|
"@babel/preset-env": "^7.25.4",
|
|
37
38
|
"@babel/types": "^7.25.6",
|
|
39
|
+
"@jest/globals": "^29.7.0",
|
|
38
40
|
"@rollup/plugin-typescript": "^12.1.0",
|
|
39
41
|
"@types/applepayjs": "^14.0.8",
|
|
40
42
|
"@types/jest": "^29.5.13",
|
|
@@ -50,7 +52,6 @@
|
|
|
50
52
|
"jest": "^29.7.0",
|
|
51
53
|
"jest-environment-jsdom": "^29.7.0",
|
|
52
54
|
"jest-when": "^3.6.0",
|
|
53
|
-
"js-crypto-aes": "^1.0.6",
|
|
54
55
|
"prettier": "^3.3.3",
|
|
55
56
|
"rollup-plugin-visualizer": "^5.12.0",
|
|
56
57
|
"ts-jest": "^29.2.5",
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
//#region src/sdk/config.local.ts
|
|
2
|
-
var e = {
|
|
3
|
-
baseUrl: "",
|
|
4
|
-
cssUrl: "",
|
|
5
|
-
redirectUrl: "",
|
|
6
|
-
url: "",
|
|
7
|
-
secureUrl: "/dist/secure/index.html",
|
|
8
|
-
apiUrl: "",
|
|
9
|
-
errorUrl: "https://y2it4xhgpx5junghaf3psg7a7q0splje.lambda-url.ap-southeast-2.on.aws"
|
|
10
|
-
}, t = {
|
|
11
|
-
baseUrl: "https://assets.payfurl.com",
|
|
12
|
-
cssUrl: "https://assets.payfurl.com/v4.9.3/js/",
|
|
13
|
-
url: "https://assets.payfurl.com/v4.9.3/iframe/index.html",
|
|
14
|
-
secureUrl: "https://assets.payfurl.com/v4.9.3/secure/index.html",
|
|
15
|
-
redirectUrl: "https://assets.payfurl.com/v4.9.3/checkout/redirect.html",
|
|
16
|
-
apiUrl: "https://develop-api.payfurl.com",
|
|
17
|
-
errorUrl: "https://y2it4xhgpx5junghaf3psg7a7q0splje.lambda-url.ap-southeast-2.on.aws"
|
|
18
|
-
}, n = {
|
|
19
|
-
baseUrl: "https://assets.payfurl.com",
|
|
20
|
-
cssUrl: "https://assets.payfurl.com/v4.9.3/js/",
|
|
21
|
-
url: "https://assets.payfurl.com/v4.9.3/iframe/index.html",
|
|
22
|
-
secureUrl: "https://assets.payfurl.com/v4.9.3/secure/index.html",
|
|
23
|
-
redirectUrl: "https://assets.payfurl.com/v4.9.3/checkout/redirect.html",
|
|
24
|
-
apiUrl: "https://sandbox-api.payfurl.com",
|
|
25
|
-
errorUrl: "https://gujl7xo5fhpkjaain4swyiymt40loyia.lambda-url.ap-southeast-2.on.aws"
|
|
26
|
-
}, r = {
|
|
27
|
-
baseUrl: "https://assets.payfurl.com",
|
|
28
|
-
cssUrl: "https://assets.payfurl.com/v4.9.3/js/",
|
|
29
|
-
url: "https://assets.payfurl.com/v4.9.3/iframe/index.html",
|
|
30
|
-
secureUrl: "https://assets.payfurl.com/v4.9.3/secure/index.html",
|
|
31
|
-
redirectUrl: "https://assets.payfurl.com/v4.9.3/checkout/redirect.html",
|
|
32
|
-
apiUrl: "https://api.payfurl.com",
|
|
33
|
-
errorUrl: "https://4rvkh6tupgcmqk3b2igkpdi2zi0mveyg.lambda-url.ap-southeast-2.on.aws"
|
|
34
|
-
}, i;
|
|
35
|
-
(function(e) {
|
|
36
|
-
e.LOCAL = "local", e.DEVELOPMENT = "development", e.SANDBOX = "sandbox", e.PRODUCTION = "production";
|
|
37
|
-
})(i ||= {});
|
|
38
|
-
var a = {
|
|
39
|
-
[i.LOCAL]: e,
|
|
40
|
-
[i.DEVELOPMENT]: t,
|
|
41
|
-
[i.SANDBOX]: n,
|
|
42
|
-
[i.PRODUCTION]: r
|
|
43
|
-
};
|
|
44
|
-
function o(e) {
|
|
45
|
-
return a[e];
|
|
46
|
-
}
|
|
47
|
-
function s(e) {
|
|
48
|
-
let t = a[e];
|
|
49
|
-
return t ||= a[i.PRODUCTION], t.errorUrl;
|
|
50
|
-
}
|
|
51
|
-
//#endregion
|
|
52
|
-
//#region src/utils/httpInvoker.ts
|
|
53
|
-
var c = class {
|
|
54
|
-
publicKey = "";
|
|
55
|
-
version = "";
|
|
56
|
-
regionResolver = null;
|
|
57
|
-
constructor(e, t, n) {
|
|
58
|
-
this.publicKey = e || "", this.version = t || "", this.regionResolver = n || null;
|
|
59
|
-
}
|
|
60
|
-
invoke(e, t, n, r, i, a) {
|
|
61
|
-
let o = new XMLHttpRequest();
|
|
62
|
-
o || i?.(0, ""), o.onreadystatechange = function() {
|
|
63
|
-
o.readyState === 4 && (o.status === 200 || o.status === 201 ? r?.(o.status, o.responseText) : i?.(o.status, o.responseText));
|
|
64
|
-
};
|
|
65
|
-
let s = new URL(e);
|
|
66
|
-
if (this.regionResolver && (s.hostname = new URL(this.regionResolver.getRegionUrl()).hostname), o.open(t, s.toString()), o.setRequestHeader("Content-Type", "application/json"), this.publicKey && o.setRequestHeader("x-publickey", this.publicKey), this.version && o.setRequestHeader("sdk-version", this.version), a) for (let [e, t] of Object.entries(a)) o.setRequestHeader(e, t);
|
|
67
|
-
o.send(String(n));
|
|
68
|
-
}
|
|
69
|
-
}, l = { domain: "payfurl.com" }, u = {
|
|
70
|
-
[i.DEVELOPMENT]: {
|
|
71
|
-
AU: `https://develop-api-au.${l.domain}`,
|
|
72
|
-
DEFAULT: `https://develop-api.${l.domain}`
|
|
73
|
-
},
|
|
74
|
-
[i.SANDBOX]: {
|
|
75
|
-
AU: `https://sandbox-api-au.${l.domain}`,
|
|
76
|
-
DEFAULT: `https://sandbox-api.${l.domain}`
|
|
77
|
-
},
|
|
78
|
-
[i.PRODUCTION]: {
|
|
79
|
-
AU: `https://api-au.${l.domain}`,
|
|
80
|
-
DEFAULT: `https://api.${l.domain}`
|
|
81
|
-
},
|
|
82
|
-
[i.LOCAL]: { DEFAULT: "https://localhost:5001" }
|
|
83
|
-
}, d = class {
|
|
84
|
-
environment;
|
|
85
|
-
location;
|
|
86
|
-
constructor(e, t) {
|
|
87
|
-
this.environment = e.toLowerCase(), this.location = t.toUpperCase();
|
|
88
|
-
}
|
|
89
|
-
getRegionUrl() {
|
|
90
|
-
if (!u[this.environment]) throw Error(`Invalid environment: ${this.environment}`);
|
|
91
|
-
return u[this.environment][this.location] || u[this.environment].DEFAULT;
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
//#endregion
|
|
95
|
-
//#region src/utils/strings.ts
|
|
96
|
-
function f(e) {
|
|
97
|
-
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
98
|
-
}
|
|
99
|
-
function p(e) {
|
|
100
|
-
return e.match(/-([a-z]{2})$/)?.[1] || "";
|
|
101
|
-
}
|
|
102
|
-
function m(e) {
|
|
103
|
-
let t = e.match(/\+(9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)(\d{1,14})$/);
|
|
104
|
-
return t ? [t[1], t[2]] : [e];
|
|
105
|
-
}
|
|
106
|
-
function h(e) {
|
|
107
|
-
return e ? e.replace(/(\d{4})\d{8}(\d{4})/, "$1 **** **** $2") : "";
|
|
108
|
-
}
|
|
109
|
-
function g(e) {
|
|
110
|
-
return e.replace(/\s/g, "");
|
|
111
|
-
}
|
|
112
|
-
//#endregion
|
|
113
|
-
export { m as a, i as c, h as i, o as l, f as n, d as o, p as r, c as s, g as t, s as u };
|