@solidgate/vue-sdk 1.32.0 → 1.34.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.
@@ -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;
@@ -110,6 +118,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
110
118
  resetEnabled?: boolean | undefined;
111
119
  } | undefined, "containerId"> | undefined;
112
120
  pixAutomaticoContainerRef?: HTMLDivElement | undefined;
121
+ clickToPayButtonParams?: {
122
+ enabled?: boolean | undefined;
123
+ height?: number | undefined;
124
+ saveRecognitionToken?: boolean | undefined;
125
+ supportedCardNetworks?: ("visa" | "mastercard" | "discover" | "amex")[] | undefined;
126
+ } | undefined;
113
127
  onReadyPaymentInstance?: ((paymentInstance: ClientSdkInstance) => void) | undefined;
114
128
  onPaymentDetails?: ((e: PaymentDetailsMessage) => void) | undefined;
115
129
  onMounted?: ((e: MountedMessage) => void) | undefined;
@@ -219,6 +233,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
219
233
  height?: number | undefined;
220
234
  resetEnabled?: boolean | undefined;
221
235
  } | undefined, "containerId"> | undefined;
236
+ upiButtonParams?: Omit<{
237
+ containerId?: string | undefined;
238
+ enabled?: boolean | undefined;
239
+ height?: number | undefined;
240
+ resetEnabled?: boolean | undefined;
241
+ type?: "short" | "plain" | undefined;
242
+ } | undefined, "containerId"> | undefined;
222
243
  bizumButtonParams?: Omit<{
223
244
  containerId?: string | undefined;
224
245
  enabled?: boolean | undefined;
@@ -250,6 +271,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
250
271
  applePayContainerRef?: HTMLDivElement | undefined;
251
272
  paypalContainerRef?: HTMLDivElement | undefined;
252
273
  pixContainerRef?: HTMLDivElement | undefined;
274
+ upiContainerRef?: HTMLDivElement | undefined;
253
275
  bizumContainerRef?: HTMLDivElement | undefined;
254
276
  blikContainerRef?: HTMLDivElement | undefined;
255
277
  mbwayContainerRef?: HTMLDivElement | undefined;
@@ -262,6 +284,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
262
284
  resetEnabled?: boolean | undefined;
263
285
  } | undefined, "containerId"> | undefined;
264
286
  pixAutomaticoContainerRef?: HTMLDivElement | undefined;
287
+ clickToPayButtonParams?: {
288
+ enabled?: boolean | undefined;
289
+ height?: number | undefined;
290
+ saveRecognitionToken?: boolean | undefined;
291
+ supportedCardNetworks?: ("visa" | "mastercard" | "discover" | "amex")[] | undefined;
292
+ } | undefined;
265
293
  onReadyPaymentInstance?: ((paymentInstance: ClientSdkInstance) => void) | undefined;
266
294
  onPaymentDetails?: ((e: PaymentDetailsMessage) => void) | undefined;
267
295
  onMounted?: ((e: MountedMessage) => 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-46038224] iframe,.payment-form-container[data-v-77b30339] iframe{border:none}
1
+ .payment-form-container[data-v-5dc2e41f] 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,12 +90,14 @@ 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";
95
97
  PayableEntity2["Mbway"] = "mbway";
96
98
  PayableEntity2["CashApp"] = "cashapp";
97
99
  PayableEntity2["PixAutomatico"] = "pix-automatico";
100
+ PayableEntity2["ClickToPay"] = "clicktopay";
98
101
  })(PayableEntity || (PayableEntity = {}));
99
102
  var PayableEntity$1 = PayableEntity;
100
103
  var InteractionType;
@@ -242,6 +245,10 @@ const payButtonIds = {
242
245
  title: "Pix",
243
246
  id: PIX_BUTTON_CONTAINER_ID
244
247
  },
248
+ upiButtonParams: {
249
+ title: "UPI",
250
+ id: UPI_BUTTON_CONTAINER_ID
251
+ },
245
252
  bizumButtonParams: {
246
253
  title: "Bizum",
247
254
  id: BIZUM_BUTTON_CONTAINER_ID
@@ -298,12 +305,14 @@ const initPaymentForm = async (props) => {
298
305
  applePayContainerRef,
299
306
  paypalContainerRef,
300
307
  pixContainerRef,
308
+ upiContainerRef,
301
309
  bizumContainerRef,
302
310
  blikContainerRef,
303
311
  mbwayContainerRef,
304
312
  pixQrContainerRef,
305
313
  cashAppContainerRef,
306
- pixAutomaticoContainerRef
314
+ pixAutomaticoContainerRef,
315
+ clickToPayButtonParams
307
316
  } = props;
308
317
  if (!merchantData) {
309
318
  throw new Error("Attribute 'merchantData' is required");
@@ -319,7 +328,8 @@ const initPaymentForm = async (props) => {
319
328
  ...width && { width }
320
329
  },
321
330
  ...formParams && { formParams },
322
- ...styles && { styles }
331
+ ...styles && { styles },
332
+ ...clickToPayButtonParams && { clickToPayButtonParams }
323
333
  };
324
334
  const googleButtonParams = getPayButtonParams(
325
335
  props,
@@ -353,6 +363,14 @@ const initPaymentForm = async (props) => {
353
363
  if (pixButtonParams) {
354
364
  initConfig.pixButtonParams = pixButtonParams;
355
365
  }
366
+ const upiButtonParams = getPayButtonParams(
367
+ props,
368
+ "upiButtonParams",
369
+ upiContainerRef
370
+ );
371
+ if (upiButtonParams) {
372
+ initConfig.upiButtonParams = upiButtonParams;
373
+ }
356
374
  const bizumButtonParams = getPayButtonParams(
357
375
  props,
358
376
  "bizumButtonParams",
@@ -474,6 +492,7 @@ const _sfc_main$1 = defineComponent({
474
492
  applePayButtonParams: {},
475
493
  paypalButtonParams: {},
476
494
  pixButtonParams: {},
495
+ upiButtonParams: {},
477
496
  bizumButtonParams: {},
478
497
  blikButtonParams: {},
479
498
  mbwayButtonParams: {},
@@ -483,6 +502,7 @@ const _sfc_main$1 = defineComponent({
483
502
  applePayContainerRef: {},
484
503
  paypalContainerRef: {},
485
504
  pixContainerRef: {},
505
+ upiContainerRef: {},
486
506
  bizumContainerRef: {},
487
507
  blikContainerRef: {},
488
508
  mbwayContainerRef: {},
@@ -490,6 +510,7 @@ const _sfc_main$1 = defineComponent({
490
510
  cashAppContainerRef: {},
491
511
  pixAutomaticoButtonParams: {},
492
512
  pixAutomaticoContainerRef: {},
513
+ clickToPayButtonParams: {},
493
514
  onReadyPaymentInstance: {},
494
515
  onPaymentDetails: { type: Function, default: () => {
495
516
  } },
@@ -531,16 +552,19 @@ const _sfc_main$1 = defineComponent({
531
552
  applePayButtonParams: props.applePayButtonParams,
532
553
  paypalButtonParams: props.paypalButtonParams,
533
554
  pixButtonParams: props.pixButtonParams,
555
+ upiButtonParams: props.upiButtonParams,
534
556
  bizumButtonParams: props.bizumButtonParams,
535
557
  blikButtonParams: props.blikButtonParams,
536
558
  mbwayButtonParams: props.mbwayButtonParams,
537
559
  pixQrButtonParams: props.pixQrButtonParams,
538
560
  cashAppButtonParams: props.cashAppButtonParams,
539
561
  pixAutomaticoButtonParams: props.pixAutomaticoButtonParams,
562
+ clickToPayButtonParams: props.clickToPayButtonParams,
540
563
  googlePayContainerRef: props.googlePayContainerRef,
541
564
  applePayContainerRef: props.applePayContainerRef,
542
565
  paypalContainerRef: props.paypalContainerRef,
543
566
  pixContainerRef: props.pixContainerRef,
567
+ upiContainerRef: props.upiContainerRef,
544
568
  bizumContainerRef: props.bizumContainerRef,
545
569
  blikContainerRef: props.blikContainerRef,
546
570
  mbwayContainerRef: props.mbwayContainerRef,
@@ -591,7 +615,7 @@ const _sfc_main$1 = defineComponent({
591
615
  };
592
616
  }
593
617
  });
594
- var Payment = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-46038224"]]);
618
+ var Payment = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-5dc2e41f"]]);
595
619
  const initResignForm = async (config) => {
596
620
  if (!config.resignRequest) {
597
621
  throw new Error("Attribute 'resignRequest' is required");
@@ -9,16 +9,19 @@ 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'>;
15
16
  pixQrButtonParams?: Omit<InitConfig['pixQrButtonParams'], 'containerId'>;
16
17
  cashAppButtonParams?: Omit<InitConfig['cashAppButtonParams'], 'containerId'>;
17
18
  pixAutomaticoButtonParams?: Omit<InitConfig['pixAutomaticoButtonParams'], 'containerId'>;
19
+ clickToPayButtonParams?: InitConfig['clickToPayButtonParams'];
18
20
  googlePayContainerRef?: HTMLDivElement;
19
21
  applePayContainerRef?: HTMLDivElement;
20
22
  paypalContainerRef?: HTMLDivElement;
21
23
  pixContainerRef?: HTMLDivElement;
24
+ upiContainerRef?: HTMLDivElement;
22
25
  bizumContainerRef?: HTMLDivElement;
23
26
  blikContainerRef?: HTMLDivElement;
24
27
  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.32.0",
3
+ "version": "1.34.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.32.0"
31
+ "@solidgate/client-sdk-loader": "^1.34.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@babel/types": "^7.24.5",