@solidgate/vue-sdk 1.6.0 → 1.8.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.
- package/dist/solid-payment.es.js +28 -7
- package/package.json +2 -2
package/dist/solid-payment.es.js
CHANGED
|
@@ -1944,6 +1944,17 @@ var CardBrand$1 = {};
|
|
|
1944
1944
|
CardBrand3["Elo"] = "elo";
|
|
1945
1945
|
CardBrand3["Hipercard"] = "hipercard";
|
|
1946
1946
|
CardBrand3["CartesBancaires"] = "cartes-bancaires";
|
|
1947
|
+
CardBrand3["Rupay"] = "rupay";
|
|
1948
|
+
CardBrand3["BCCard"] = "bc-card";
|
|
1949
|
+
CardBrand3["UnionPay"] = "unionpay";
|
|
1950
|
+
CardBrand3["Dankort"] = "dankort";
|
|
1951
|
+
CardBrand3["GPNCard"] = "gpn-card";
|
|
1952
|
+
CardBrand3["Troy"] = "troy";
|
|
1953
|
+
CardBrand3["ThaiPaymentNetwork"] = "thai-payment-network";
|
|
1954
|
+
CardBrand3["MADA"] = "mada";
|
|
1955
|
+
CardBrand3["Bancontact"] = "bancontact";
|
|
1956
|
+
CardBrand3["Interac"] = "interac";
|
|
1957
|
+
CardBrand3["Bajaj"] = "bajaj";
|
|
1947
1958
|
})(CardBrand2 = exports.CardBrand || (exports.CardBrand = {}));
|
|
1948
1959
|
exports.default = CardBrand2;
|
|
1949
1960
|
})(CardBrand$1);
|
|
@@ -2370,6 +2381,7 @@ const _sfc_main = defineComponent({
|
|
|
2370
2381
|
appearance: {},
|
|
2371
2382
|
styles: {},
|
|
2372
2383
|
onReadyResignInstance: {},
|
|
2384
|
+
onResignInitFailed: {},
|
|
2373
2385
|
onMounted: { type: Function, default: () => {
|
|
2374
2386
|
} },
|
|
2375
2387
|
onError: { type: Function, default: () => {
|
|
@@ -2393,7 +2405,7 @@ const _sfc_main = defineComponent({
|
|
|
2393
2405
|
onResize: { type: Function, default: () => {
|
|
2394
2406
|
} }
|
|
2395
2407
|
},
|
|
2396
|
-
emits: ["mounted", "error", "success", "fail", "submit", "verify", "customStylesAppended", "formRedirect", "interaction", "orderStatus", "resize", "readyResignInstance"],
|
|
2408
|
+
emits: ["mounted", "error", "success", "fail", "submit", "verify", "customStylesAppended", "formRedirect", "interaction", "orderStatus", "resize", "readyResignInstance", "resignInitFailed"],
|
|
2397
2409
|
setup(__props, { emit }) {
|
|
2398
2410
|
const props = __props;
|
|
2399
2411
|
const StyledResign = styled.div`
|
|
@@ -2422,11 +2434,15 @@ const _sfc_main = defineComponent({
|
|
|
2422
2434
|
onResize: (e) => props.onResize && props.onResize(e)
|
|
2423
2435
|
};
|
|
2424
2436
|
onMounted(async () => {
|
|
2425
|
-
var _a2;
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2437
|
+
var _a2, _b;
|
|
2438
|
+
try {
|
|
2439
|
+
sdkInstance.value = await initResignForm(resignConfig);
|
|
2440
|
+
if (sdkInstance.value) {
|
|
2441
|
+
onSubscribe(sdkInstance.value, callbacks);
|
|
2442
|
+
(_a2 = props.onReadyResignInstance) == null ? void 0 : _a2.call(props, sdkInstance.value);
|
|
2443
|
+
}
|
|
2444
|
+
} catch (error) {
|
|
2445
|
+
(_b = props.onResignInitFailed) == null ? void 0 : _b.call(props, error);
|
|
2430
2446
|
}
|
|
2431
2447
|
});
|
|
2432
2448
|
onUnmounted(() => {
|
|
@@ -2438,7 +2454,12 @@ const _sfc_main = defineComponent({
|
|
|
2438
2454
|
(value) => isReactive(value) ? value : () => value
|
|
2439
2455
|
),
|
|
2440
2456
|
async () => {
|
|
2441
|
-
|
|
2457
|
+
var _a2;
|
|
2458
|
+
try {
|
|
2459
|
+
sdkInstance.value = await initResignForm(resignConfig);
|
|
2460
|
+
} catch (error) {
|
|
2461
|
+
(_a2 = props.onResignInitFailed) == null ? void 0 : _a2.call(props, error);
|
|
2462
|
+
}
|
|
2442
2463
|
}
|
|
2443
2464
|
);
|
|
2444
2465
|
return (_ctx, _cache) => {
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"import": "./dist/solid-payment.es.js"
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
|
-
"version": "1.
|
|
13
|
+
"version": "1.8.0",
|
|
14
14
|
"typings": "./dist/lib/index.d.ts",
|
|
15
15
|
"license": "Apache-2.0",
|
|
16
16
|
"scripts": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"vue": "^3.2.25"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@solidgate/client-sdk-loader": "^1.
|
|
28
|
+
"@solidgate/client-sdk-loader": "^1.8.0",
|
|
29
29
|
"vue3-styled-components": "^1.2.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|