@solidgate/vue-sdk 1.7.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 +17 -7
- package/package.json +1 -1
package/dist/solid-payment.es.js
CHANGED
|
@@ -2381,6 +2381,7 @@ const _sfc_main = defineComponent({
|
|
|
2381
2381
|
appearance: {},
|
|
2382
2382
|
styles: {},
|
|
2383
2383
|
onReadyResignInstance: {},
|
|
2384
|
+
onResignInitFailed: {},
|
|
2384
2385
|
onMounted: { type: Function, default: () => {
|
|
2385
2386
|
} },
|
|
2386
2387
|
onError: { type: Function, default: () => {
|
|
@@ -2404,7 +2405,7 @@ const _sfc_main = defineComponent({
|
|
|
2404
2405
|
onResize: { type: Function, default: () => {
|
|
2405
2406
|
} }
|
|
2406
2407
|
},
|
|
2407
|
-
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"],
|
|
2408
2409
|
setup(__props, { emit }) {
|
|
2409
2410
|
const props = __props;
|
|
2410
2411
|
const StyledResign = styled.div`
|
|
@@ -2433,11 +2434,15 @@ const _sfc_main = defineComponent({
|
|
|
2433
2434
|
onResize: (e) => props.onResize && props.onResize(e)
|
|
2434
2435
|
};
|
|
2435
2436
|
onMounted(async () => {
|
|
2436
|
-
var _a2;
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
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);
|
|
2441
2446
|
}
|
|
2442
2447
|
});
|
|
2443
2448
|
onUnmounted(() => {
|
|
@@ -2449,7 +2454,12 @@ const _sfc_main = defineComponent({
|
|
|
2449
2454
|
(value) => isReactive(value) ? value : () => value
|
|
2450
2455
|
),
|
|
2451
2456
|
async () => {
|
|
2452
|
-
|
|
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
|
+
}
|
|
2453
2463
|
}
|
|
2454
2464
|
);
|
|
2455
2465
|
return (_ctx, _cache) => {
|