@solidgate/vue-sdk 1.31.0 → 1.33.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/Payment.vue.d.ts
CHANGED
|
@@ -65,6 +65,14 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
65
65
|
containerId?: string | undefined;
|
|
66
66
|
enabled?: boolean | undefined;
|
|
67
67
|
height?: number | undefined;
|
|
68
|
+
resetEnabled?: boolean | undefined;
|
|
69
|
+
} | undefined, "containerId"> | undefined;
|
|
70
|
+
upiButtonParams?: Omit<{
|
|
71
|
+
containerId?: string | undefined;
|
|
72
|
+
enabled?: boolean | undefined;
|
|
73
|
+
height?: number | undefined;
|
|
74
|
+
resetEnabled?: boolean | undefined;
|
|
75
|
+
type?: "short" | "plain" | undefined;
|
|
68
76
|
} | undefined, "containerId"> | undefined;
|
|
69
77
|
bizumButtonParams?: Omit<{
|
|
70
78
|
containerId?: string | undefined;
|
|
@@ -76,6 +84,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
76
84
|
enabled?: boolean | undefined;
|
|
77
85
|
theme?: "dark" | "light" | undefined;
|
|
78
86
|
height?: number | undefined;
|
|
87
|
+
resetEnabled?: boolean | undefined;
|
|
79
88
|
} | undefined, "containerId"> | undefined;
|
|
80
89
|
mbwayButtonParams?: Omit<{
|
|
81
90
|
containerId?: string | undefined;
|
|
@@ -86,6 +95,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
86
95
|
containerId?: string | undefined;
|
|
87
96
|
enabled?: boolean | undefined;
|
|
88
97
|
height?: number | undefined;
|
|
98
|
+
resetEnabled?: boolean | undefined;
|
|
89
99
|
} | undefined, "containerId"> | undefined;
|
|
90
100
|
cashAppButtonParams?: Omit<{
|
|
91
101
|
containerId?: string | undefined;
|
|
@@ -95,6 +105,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
95
105
|
applePayContainerRef?: HTMLDivElement | undefined;
|
|
96
106
|
paypalContainerRef?: HTMLDivElement | undefined;
|
|
97
107
|
pixContainerRef?: HTMLDivElement | undefined;
|
|
108
|
+
upiContainerRef?: HTMLDivElement | undefined;
|
|
98
109
|
bizumContainerRef?: HTMLDivElement | undefined;
|
|
99
110
|
blikContainerRef?: HTMLDivElement | undefined;
|
|
100
111
|
mbwayContainerRef?: HTMLDivElement | undefined;
|
|
@@ -104,6 +115,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
104
115
|
containerId?: string | undefined;
|
|
105
116
|
enabled?: boolean | undefined;
|
|
106
117
|
height?: number | undefined;
|
|
118
|
+
resetEnabled?: boolean | undefined;
|
|
107
119
|
} | undefined, "containerId"> | undefined;
|
|
108
120
|
pixAutomaticoContainerRef?: HTMLDivElement | undefined;
|
|
109
121
|
onReadyPaymentInstance?: ((paymentInstance: ClientSdkInstance) => void) | undefined;
|
|
@@ -213,6 +225,14 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
213
225
|
containerId?: string | undefined;
|
|
214
226
|
enabled?: boolean | undefined;
|
|
215
227
|
height?: number | undefined;
|
|
228
|
+
resetEnabled?: boolean | undefined;
|
|
229
|
+
} | undefined, "containerId"> | undefined;
|
|
230
|
+
upiButtonParams?: Omit<{
|
|
231
|
+
containerId?: string | undefined;
|
|
232
|
+
enabled?: boolean | undefined;
|
|
233
|
+
height?: number | undefined;
|
|
234
|
+
resetEnabled?: boolean | undefined;
|
|
235
|
+
type?: "short" | "plain" | undefined;
|
|
216
236
|
} | undefined, "containerId"> | undefined;
|
|
217
237
|
bizumButtonParams?: Omit<{
|
|
218
238
|
containerId?: string | undefined;
|
|
@@ -224,6 +244,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
224
244
|
enabled?: boolean | undefined;
|
|
225
245
|
theme?: "dark" | "light" | undefined;
|
|
226
246
|
height?: number | undefined;
|
|
247
|
+
resetEnabled?: boolean | undefined;
|
|
227
248
|
} | undefined, "containerId"> | undefined;
|
|
228
249
|
mbwayButtonParams?: Omit<{
|
|
229
250
|
containerId?: string | undefined;
|
|
@@ -234,6 +255,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
234
255
|
containerId?: string | undefined;
|
|
235
256
|
enabled?: boolean | undefined;
|
|
236
257
|
height?: number | undefined;
|
|
258
|
+
resetEnabled?: boolean | undefined;
|
|
237
259
|
} | undefined, "containerId"> | undefined;
|
|
238
260
|
cashAppButtonParams?: Omit<{
|
|
239
261
|
containerId?: string | undefined;
|
|
@@ -243,6 +265,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
243
265
|
applePayContainerRef?: HTMLDivElement | undefined;
|
|
244
266
|
paypalContainerRef?: HTMLDivElement | undefined;
|
|
245
267
|
pixContainerRef?: HTMLDivElement | undefined;
|
|
268
|
+
upiContainerRef?: HTMLDivElement | undefined;
|
|
246
269
|
bizumContainerRef?: HTMLDivElement | undefined;
|
|
247
270
|
blikContainerRef?: HTMLDivElement | undefined;
|
|
248
271
|
mbwayContainerRef?: HTMLDivElement | undefined;
|
|
@@ -252,6 +275,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
252
275
|
containerId?: string | undefined;
|
|
253
276
|
enabled?: boolean | undefined;
|
|
254
277
|
height?: number | undefined;
|
|
278
|
+
resetEnabled?: boolean | undefined;
|
|
255
279
|
} | undefined, "containerId"> | undefined;
|
|
256
280
|
pixAutomaticoContainerRef?: HTMLDivElement | undefined;
|
|
257
281
|
onReadyPaymentInstance?: ((paymentInstance: ClientSdkInstance) => void) | undefined;
|
|
@@ -3,10 +3,11 @@ declare const GOOGLE_PAY_BUTTON_CONTAINER_ID: string;
|
|
|
3
3
|
declare const APPLE_PAY_BUTTON_CONTAINER_ID: string;
|
|
4
4
|
declare const PAYPAL_BUTTON_CONTAINER_ID: string;
|
|
5
5
|
declare const PIX_BUTTON_CONTAINER_ID: string;
|
|
6
|
+
declare const UPI_BUTTON_CONTAINER_ID: string;
|
|
6
7
|
declare const BIZUM_BUTTON_CONTAINER_ID: string;
|
|
7
8
|
declare const BLIK_BUTTON_CONTAINER_ID: string;
|
|
8
9
|
declare const MBWAY_BUTTON_CONTAINER_ID: string;
|
|
9
10
|
declare const PIX_QR_BUTTON_CONTAINER_ID: string;
|
|
10
11
|
declare const CASHAPP_BUTTON_CONTAINER_ID: string;
|
|
11
12
|
declare const PIX_AUTOMATICO_BUTTON_CONTAINER_ID: string;
|
|
12
|
-
export { IFRAME_CONTAINER_ID, GOOGLE_PAY_BUTTON_CONTAINER_ID, APPLE_PAY_BUTTON_CONTAINER_ID, PAYPAL_BUTTON_CONTAINER_ID, PIX_BUTTON_CONTAINER_ID, BIZUM_BUTTON_CONTAINER_ID, BLIK_BUTTON_CONTAINER_ID, MBWAY_BUTTON_CONTAINER_ID, PIX_QR_BUTTON_CONTAINER_ID, CASHAPP_BUTTON_CONTAINER_ID, PIX_AUTOMATICO_BUTTON_CONTAINER_ID };
|
|
13
|
+
export { IFRAME_CONTAINER_ID, GOOGLE_PAY_BUTTON_CONTAINER_ID, APPLE_PAY_BUTTON_CONTAINER_ID, PAYPAL_BUTTON_CONTAINER_ID, PIX_BUTTON_CONTAINER_ID, UPI_BUTTON_CONTAINER_ID, BIZUM_BUTTON_CONTAINER_ID, BLIK_BUTTON_CONTAINER_ID, MBWAY_BUTTON_CONTAINER_ID, PIX_QR_BUTTON_CONTAINER_ID, CASHAPP_BUTTON_CONTAINER_ID, PIX_AUTOMATICO_BUTTON_CONTAINER_ID };
|
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.payment-form-container[data-v-
|
|
1
|
+
.payment-form-container[data-v-cb1259ac] iframe,.payment-form-container[data-v-77b30339] iframe{border:none}
|
package/dist/index.es.js
CHANGED
|
@@ -4,6 +4,7 @@ const GOOGLE_PAY_BUTTON_CONTAINER_ID = `google-pay-button-container_#${Math.rand
|
|
|
4
4
|
const APPLE_PAY_BUTTON_CONTAINER_ID = `apple-pay-button-container_#${Math.random() * 1e4}`;
|
|
5
5
|
const PAYPAL_BUTTON_CONTAINER_ID = `paypal-button-container_#${Math.random() * 1e4}`;
|
|
6
6
|
const PIX_BUTTON_CONTAINER_ID = `pix-button-container_#${Math.random() * 1e4}`;
|
|
7
|
+
const UPI_BUTTON_CONTAINER_ID = `upi-button-container_#${Math.random() * 1e4}`;
|
|
7
8
|
const BIZUM_BUTTON_CONTAINER_ID = `bizum-button-container_#${Math.random() * 1e4}`;
|
|
8
9
|
const BLIK_BUTTON_CONTAINER_ID = `blik-button-container_#${Math.random() * 1e4}`;
|
|
9
10
|
const MBWAY_BUTTON_CONTAINER_ID = `mbway-button-container_#${Math.random() * 1e4}`;
|
|
@@ -89,6 +90,7 @@ var PayableEntity;
|
|
|
89
90
|
PayableEntity2["Resign"] = "resign";
|
|
90
91
|
PayableEntity2["Paypal"] = "paypal";
|
|
91
92
|
PayableEntity2["Pix"] = "pix";
|
|
93
|
+
PayableEntity2["Upi"] = "upi";
|
|
92
94
|
PayableEntity2["PixQr"] = "pix-qr";
|
|
93
95
|
PayableEntity2["Bizum"] = "bizum";
|
|
94
96
|
PayableEntity2["Blik"] = "blik";
|
|
@@ -101,6 +103,7 @@ var InteractionType;
|
|
|
101
103
|
(function(InteractionType2) {
|
|
102
104
|
InteractionType2["Click"] = "click";
|
|
103
105
|
InteractionType2["PageClose"] = "pageClose";
|
|
106
|
+
InteractionType2["ResetRequested"] = "resetRequested";
|
|
104
107
|
InteractionType2["Focus"] = "focus";
|
|
105
108
|
InteractionType2["Blur"] = "blur";
|
|
106
109
|
InteractionType2["Change"] = "change";
|
|
@@ -241,6 +244,10 @@ const payButtonIds = {
|
|
|
241
244
|
title: "Pix",
|
|
242
245
|
id: PIX_BUTTON_CONTAINER_ID
|
|
243
246
|
},
|
|
247
|
+
upiButtonParams: {
|
|
248
|
+
title: "UPI",
|
|
249
|
+
id: UPI_BUTTON_CONTAINER_ID
|
|
250
|
+
},
|
|
244
251
|
bizumButtonParams: {
|
|
245
252
|
title: "Bizum",
|
|
246
253
|
id: BIZUM_BUTTON_CONTAINER_ID
|
|
@@ -297,6 +304,7 @@ const initPaymentForm = async (props) => {
|
|
|
297
304
|
applePayContainerRef,
|
|
298
305
|
paypalContainerRef,
|
|
299
306
|
pixContainerRef,
|
|
307
|
+
upiContainerRef,
|
|
300
308
|
bizumContainerRef,
|
|
301
309
|
blikContainerRef,
|
|
302
310
|
mbwayContainerRef,
|
|
@@ -352,6 +360,14 @@ const initPaymentForm = async (props) => {
|
|
|
352
360
|
if (pixButtonParams) {
|
|
353
361
|
initConfig.pixButtonParams = pixButtonParams;
|
|
354
362
|
}
|
|
363
|
+
const upiButtonParams = getPayButtonParams(
|
|
364
|
+
props,
|
|
365
|
+
"upiButtonParams",
|
|
366
|
+
upiContainerRef
|
|
367
|
+
);
|
|
368
|
+
if (upiButtonParams) {
|
|
369
|
+
initConfig.upiButtonParams = upiButtonParams;
|
|
370
|
+
}
|
|
355
371
|
const bizumButtonParams = getPayButtonParams(
|
|
356
372
|
props,
|
|
357
373
|
"bizumButtonParams",
|
|
@@ -473,6 +489,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
473
489
|
applePayButtonParams: {},
|
|
474
490
|
paypalButtonParams: {},
|
|
475
491
|
pixButtonParams: {},
|
|
492
|
+
upiButtonParams: {},
|
|
476
493
|
bizumButtonParams: {},
|
|
477
494
|
blikButtonParams: {},
|
|
478
495
|
mbwayButtonParams: {},
|
|
@@ -482,6 +499,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
482
499
|
applePayContainerRef: {},
|
|
483
500
|
paypalContainerRef: {},
|
|
484
501
|
pixContainerRef: {},
|
|
502
|
+
upiContainerRef: {},
|
|
485
503
|
bizumContainerRef: {},
|
|
486
504
|
blikContainerRef: {},
|
|
487
505
|
mbwayContainerRef: {},
|
|
@@ -530,6 +548,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
530
548
|
applePayButtonParams: props.applePayButtonParams,
|
|
531
549
|
paypalButtonParams: props.paypalButtonParams,
|
|
532
550
|
pixButtonParams: props.pixButtonParams,
|
|
551
|
+
upiButtonParams: props.upiButtonParams,
|
|
533
552
|
bizumButtonParams: props.bizumButtonParams,
|
|
534
553
|
blikButtonParams: props.blikButtonParams,
|
|
535
554
|
mbwayButtonParams: props.mbwayButtonParams,
|
|
@@ -540,6 +559,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
540
559
|
applePayContainerRef: props.applePayContainerRef,
|
|
541
560
|
paypalContainerRef: props.paypalContainerRef,
|
|
542
561
|
pixContainerRef: props.pixContainerRef,
|
|
562
|
+
upiContainerRef: props.upiContainerRef,
|
|
543
563
|
bizumContainerRef: props.bizumContainerRef,
|
|
544
564
|
blikContainerRef: props.blikContainerRef,
|
|
545
565
|
mbwayContainerRef: props.mbwayContainerRef,
|
|
@@ -590,7 +610,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
590
610
|
};
|
|
591
611
|
}
|
|
592
612
|
});
|
|
593
|
-
var Payment = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
613
|
+
var Payment = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-cb1259ac"]]);
|
|
594
614
|
const initResignForm = async (config) => {
|
|
595
615
|
if (!config.resignRequest) {
|
|
596
616
|
throw new Error("Attribute 'resignRequest' is required");
|
|
@@ -9,6 +9,7 @@ interface PaymentProps extends Partial<ClientSdkEventsProvider> {
|
|
|
9
9
|
applePayButtonParams?: Omit<InitConfig['applePayButtonParams'], 'containerId'>;
|
|
10
10
|
paypalButtonParams?: Omit<InitConfig['paypalButtonParams'], 'containerId'>;
|
|
11
11
|
pixButtonParams?: Omit<InitConfig['pixButtonParams'], 'containerId'>;
|
|
12
|
+
upiButtonParams?: Omit<InitConfig['upiButtonParams'], 'containerId'>;
|
|
12
13
|
bizumButtonParams?: Omit<InitConfig['bizumButtonParams'], 'containerId'>;
|
|
13
14
|
blikButtonParams?: Omit<InitConfig['blikButtonParams'], 'containerId'>;
|
|
14
15
|
mbwayButtonParams?: Omit<InitConfig['mbwayButtonParams'], 'containerId'>;
|
|
@@ -19,6 +20,7 @@ interface PaymentProps extends Partial<ClientSdkEventsProvider> {
|
|
|
19
20
|
applePayContainerRef?: HTMLDivElement;
|
|
20
21
|
paypalContainerRef?: HTMLDivElement;
|
|
21
22
|
pixContainerRef?: HTMLDivElement;
|
|
23
|
+
upiContainerRef?: HTMLDivElement;
|
|
22
24
|
bizumContainerRef?: HTMLDivElement;
|
|
23
25
|
blikContainerRef?: HTMLDivElement;
|
|
24
26
|
mbwayContainerRef?: HTMLDivElement;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InitConfig } from '@solidgate/client-sdk-loader';
|
|
2
|
-
declare function getPayButtonParams<T extends 'googlePayButtonParams' | 'applePayButtonParams' | 'paypalButtonParams' | 'pixButtonParams' | 'bizumButtonParams' | 'blikButtonParams' | 'mbwayButtonParams' | 'pixQrButtonParams' | 'cashAppButtonParams' | 'pixAutomaticoButtonParams'>(config: InitConfig, key: T, container: HTMLElement | undefined): NonNullable<InitConfig[T]> | undefined;
|
|
2
|
+
declare function getPayButtonParams<T extends 'googlePayButtonParams' | 'applePayButtonParams' | 'paypalButtonParams' | 'pixButtonParams' | 'upiButtonParams' | 'bizumButtonParams' | 'blikButtonParams' | 'mbwayButtonParams' | 'pixQrButtonParams' | 'cashAppButtonParams' | 'pixAutomaticoButtonParams'>(config: InitConfig, key: T, container: HTMLElement | undefined): NonNullable<InitConfig[T]> | undefined;
|
|
3
3
|
export default getPayButtonParams;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solidgate/vue-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.33.0",
|
|
4
4
|
"repository": "https://github.com/solidgate-tech/vue-sdk",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"vue": "^3.2.25"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@solidgate/client-sdk-loader": "^1.
|
|
31
|
+
"@solidgate/client-sdk-loader": "^1.33.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@babel/types": "^7.24.5",
|