@solidgate/vue-sdk 1.32.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
|
@@ -67,6 +67,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
67
67
|
height?: number | undefined;
|
|
68
68
|
resetEnabled?: boolean | undefined;
|
|
69
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;
|
|
76
|
+
} | undefined, "containerId"> | undefined;
|
|
70
77
|
bizumButtonParams?: Omit<{
|
|
71
78
|
containerId?: string | undefined;
|
|
72
79
|
enabled?: boolean | undefined;
|
|
@@ -98,6 +105,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
98
105
|
applePayContainerRef?: HTMLDivElement | undefined;
|
|
99
106
|
paypalContainerRef?: HTMLDivElement | undefined;
|
|
100
107
|
pixContainerRef?: HTMLDivElement | undefined;
|
|
108
|
+
upiContainerRef?: HTMLDivElement | undefined;
|
|
101
109
|
bizumContainerRef?: HTMLDivElement | undefined;
|
|
102
110
|
blikContainerRef?: HTMLDivElement | undefined;
|
|
103
111
|
mbwayContainerRef?: HTMLDivElement | undefined;
|
|
@@ -219,6 +227,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
219
227
|
height?: number | undefined;
|
|
220
228
|
resetEnabled?: boolean | undefined;
|
|
221
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;
|
|
236
|
+
} | undefined, "containerId"> | undefined;
|
|
222
237
|
bizumButtonParams?: Omit<{
|
|
223
238
|
containerId?: string | undefined;
|
|
224
239
|
enabled?: boolean | undefined;
|
|
@@ -250,6 +265,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
250
265
|
applePayContainerRef?: HTMLDivElement | undefined;
|
|
251
266
|
paypalContainerRef?: HTMLDivElement | undefined;
|
|
252
267
|
pixContainerRef?: HTMLDivElement | undefined;
|
|
268
|
+
upiContainerRef?: HTMLDivElement | undefined;
|
|
253
269
|
bizumContainerRef?: HTMLDivElement | undefined;
|
|
254
270
|
blikContainerRef?: HTMLDivElement | undefined;
|
|
255
271
|
mbwayContainerRef?: HTMLDivElement | 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";
|
|
@@ -242,6 +244,10 @@ const payButtonIds = {
|
|
|
242
244
|
title: "Pix",
|
|
243
245
|
id: PIX_BUTTON_CONTAINER_ID
|
|
244
246
|
},
|
|
247
|
+
upiButtonParams: {
|
|
248
|
+
title: "UPI",
|
|
249
|
+
id: UPI_BUTTON_CONTAINER_ID
|
|
250
|
+
},
|
|
245
251
|
bizumButtonParams: {
|
|
246
252
|
title: "Bizum",
|
|
247
253
|
id: BIZUM_BUTTON_CONTAINER_ID
|
|
@@ -298,6 +304,7 @@ const initPaymentForm = async (props) => {
|
|
|
298
304
|
applePayContainerRef,
|
|
299
305
|
paypalContainerRef,
|
|
300
306
|
pixContainerRef,
|
|
307
|
+
upiContainerRef,
|
|
301
308
|
bizumContainerRef,
|
|
302
309
|
blikContainerRef,
|
|
303
310
|
mbwayContainerRef,
|
|
@@ -353,6 +360,14 @@ const initPaymentForm = async (props) => {
|
|
|
353
360
|
if (pixButtonParams) {
|
|
354
361
|
initConfig.pixButtonParams = pixButtonParams;
|
|
355
362
|
}
|
|
363
|
+
const upiButtonParams = getPayButtonParams(
|
|
364
|
+
props,
|
|
365
|
+
"upiButtonParams",
|
|
366
|
+
upiContainerRef
|
|
367
|
+
);
|
|
368
|
+
if (upiButtonParams) {
|
|
369
|
+
initConfig.upiButtonParams = upiButtonParams;
|
|
370
|
+
}
|
|
356
371
|
const bizumButtonParams = getPayButtonParams(
|
|
357
372
|
props,
|
|
358
373
|
"bizumButtonParams",
|
|
@@ -474,6 +489,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
474
489
|
applePayButtonParams: {},
|
|
475
490
|
paypalButtonParams: {},
|
|
476
491
|
pixButtonParams: {},
|
|
492
|
+
upiButtonParams: {},
|
|
477
493
|
bizumButtonParams: {},
|
|
478
494
|
blikButtonParams: {},
|
|
479
495
|
mbwayButtonParams: {},
|
|
@@ -483,6 +499,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
483
499
|
applePayContainerRef: {},
|
|
484
500
|
paypalContainerRef: {},
|
|
485
501
|
pixContainerRef: {},
|
|
502
|
+
upiContainerRef: {},
|
|
486
503
|
bizumContainerRef: {},
|
|
487
504
|
blikContainerRef: {},
|
|
488
505
|
mbwayContainerRef: {},
|
|
@@ -531,6 +548,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
531
548
|
applePayButtonParams: props.applePayButtonParams,
|
|
532
549
|
paypalButtonParams: props.paypalButtonParams,
|
|
533
550
|
pixButtonParams: props.pixButtonParams,
|
|
551
|
+
upiButtonParams: props.upiButtonParams,
|
|
534
552
|
bizumButtonParams: props.bizumButtonParams,
|
|
535
553
|
blikButtonParams: props.blikButtonParams,
|
|
536
554
|
mbwayButtonParams: props.mbwayButtonParams,
|
|
@@ -541,6 +559,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
541
559
|
applePayContainerRef: props.applePayContainerRef,
|
|
542
560
|
paypalContainerRef: props.paypalContainerRef,
|
|
543
561
|
pixContainerRef: props.pixContainerRef,
|
|
562
|
+
upiContainerRef: props.upiContainerRef,
|
|
544
563
|
bizumContainerRef: props.bizumContainerRef,
|
|
545
564
|
blikContainerRef: props.blikContainerRef,
|
|
546
565
|
mbwayContainerRef: props.mbwayContainerRef,
|
|
@@ -591,7 +610,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
591
610
|
};
|
|
592
611
|
}
|
|
593
612
|
});
|
|
594
|
-
var Payment = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
613
|
+
var Payment = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-cb1259ac"]]);
|
|
595
614
|
const initResignForm = async (config) => {
|
|
596
615
|
if (!config.resignRequest) {
|
|
597
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",
|