@solidgate/vue-sdk 1.28.0 → 1.30.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.
@@ -26,12 +26,14 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
26
26
  googleFontLink: string;
27
27
  cardNumberLabel: string;
28
28
  cardCvvLabel: string;
29
+ cardHolderLabel: string;
29
30
  cardExpiryDateLabel: string;
30
31
  zipLabel: string;
31
32
  emailLabel: string;
32
33
  zipCodeLabel: string;
33
34
  cardNumberPlaceholder: string;
34
35
  cardCvvPlaceholder: string;
36
+ cardHolderPlaceholder: string;
35
37
  cardExpiryDatePlaceholder: string;
36
38
  zipPlaceholder: string;
37
39
  emailPlaceholder: string;
@@ -85,6 +87,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
85
87
  enabled?: boolean | undefined;
86
88
  height?: number | undefined;
87
89
  } | undefined, "containerId"> | undefined;
90
+ cashAppButtonParams?: Omit<{
91
+ containerId?: string | undefined;
92
+ enabled?: boolean | undefined;
93
+ } | undefined, "containerId"> | undefined;
88
94
  googlePayContainerRef?: HTMLDivElement | undefined;
89
95
  applePayContainerRef?: HTMLDivElement | undefined;
90
96
  paypalContainerRef?: HTMLDivElement | undefined;
@@ -93,6 +99,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
93
99
  blikContainerRef?: HTMLDivElement | undefined;
94
100
  mbwayContainerRef?: HTMLDivElement | undefined;
95
101
  pixQrContainerRef?: HTMLDivElement | undefined;
102
+ cashAppContainerRef?: HTMLDivElement | undefined;
96
103
  onReadyPaymentInstance?: ((paymentInstance: ClientSdkInstance) => void) | undefined;
97
104
  onPaymentDetails?: ((e: PaymentDetailsMessage) => void) | undefined;
98
105
  onMounted?: ((e: MountedMessage) => void) | undefined;
@@ -161,12 +168,14 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
161
168
  googleFontLink: string;
162
169
  cardNumberLabel: string;
163
170
  cardCvvLabel: string;
171
+ cardHolderLabel: string;
164
172
  cardExpiryDateLabel: string;
165
173
  zipLabel: string;
166
174
  emailLabel: string;
167
175
  zipCodeLabel: string;
168
176
  cardNumberPlaceholder: string;
169
177
  cardCvvPlaceholder: string;
178
+ cardHolderPlaceholder: string;
170
179
  cardExpiryDatePlaceholder: string;
171
180
  zipPlaceholder: string;
172
181
  emailPlaceholder: string;
@@ -220,6 +229,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
220
229
  enabled?: boolean | undefined;
221
230
  height?: number | undefined;
222
231
  } | undefined, "containerId"> | undefined;
232
+ cashAppButtonParams?: Omit<{
233
+ containerId?: string | undefined;
234
+ enabled?: boolean | undefined;
235
+ } | undefined, "containerId"> | undefined;
223
236
  googlePayContainerRef?: HTMLDivElement | undefined;
224
237
  applePayContainerRef?: HTMLDivElement | undefined;
225
238
  paypalContainerRef?: HTMLDivElement | undefined;
@@ -228,6 +241,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
228
241
  blikContainerRef?: HTMLDivElement | undefined;
229
242
  mbwayContainerRef?: HTMLDivElement | undefined;
230
243
  pixQrContainerRef?: HTMLDivElement | undefined;
244
+ cashAppContainerRef?: HTMLDivElement | undefined;
231
245
  onReadyPaymentInstance?: ((paymentInstance: ClientSdkInstance) => void) | undefined;
232
246
  onPaymentDetails?: ((e: PaymentDetailsMessage) => void) | undefined;
233
247
  onMounted?: ((e: MountedMessage) => void) | undefined;
@@ -7,4 +7,5 @@ declare const BIZUM_BUTTON_CONTAINER_ID: string;
7
7
  declare const BLIK_BUTTON_CONTAINER_ID: string;
8
8
  declare const MBWAY_BUTTON_CONTAINER_ID: string;
9
9
  declare const PIX_QR_BUTTON_CONTAINER_ID: string;
10
- 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 };
10
+ declare const CASHAPP_BUTTON_CONTAINER_ID: string;
11
+ 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 };
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- .payment-form-container[data-v-d55f0b28] iframe,.payment-form-container[data-v-77b30339] iframe{border:none}
1
+ .payment-form-container[data-v-7d8931f2] iframe,.payment-form-container[data-v-77b30339] iframe{border:none}
package/dist/index.es.js CHANGED
@@ -8,6 +8,7 @@ const BIZUM_BUTTON_CONTAINER_ID = `bizum-button-container_#${Math.random() * 1e4
8
8
  const BLIK_BUTTON_CONTAINER_ID = `blik-button-container_#${Math.random() * 1e4}`;
9
9
  const MBWAY_BUTTON_CONTAINER_ID = `mbway-button-container_#${Math.random() * 1e4}`;
10
10
  const PIX_QR_BUTTON_CONTAINER_ID = `pix-qr-button-container_#${Math.random() * 1e4}`;
11
+ const CASHAPP_BUTTON_CONTAINER_ID = `cashapp-button-container_#${Math.random() * 1e4}`;
11
12
  var MessageType;
12
13
  (function(MessageType2) {
13
14
  MessageType2["Mounted"] = "mounted";
@@ -91,6 +92,7 @@ var PayableEntity;
91
92
  PayableEntity2["Bizum"] = "bizum";
92
93
  PayableEntity2["Blik"] = "blik";
93
94
  PayableEntity2["Mbway"] = "mbway";
95
+ PayableEntity2["CashApp"] = "cashapp";
94
96
  })(PayableEntity || (PayableEntity = {}));
95
97
  var PayableEntity$1 = PayableEntity;
96
98
  var InteractionType;
@@ -252,6 +254,10 @@ const payButtonIds = {
252
254
  pixQrButtonParams: {
253
255
  title: "Pix QR",
254
256
  id: PIX_QR_BUTTON_CONTAINER_ID
257
+ },
258
+ cashAppButtonParams: {
259
+ title: "CashApp",
260
+ id: CASHAPP_BUTTON_CONTAINER_ID
255
261
  }
256
262
  };
257
263
  function getPayButtonParams(config, key, container) {
@@ -288,7 +294,8 @@ const initPaymentForm = async (props) => {
288
294
  bizumContainerRef,
289
295
  blikContainerRef,
290
296
  mbwayContainerRef,
291
- pixQrContainerRef
297
+ pixQrContainerRef,
298
+ cashAppContainerRef
292
299
  } = props;
293
300
  if (!merchantData) {
294
301
  throw new Error("Attribute 'merchantData' is required");
@@ -370,6 +377,14 @@ const initPaymentForm = async (props) => {
370
377
  if (pixQrButtonParams) {
371
378
  initConfig.pixQrButtonParams = pixQrButtonParams;
372
379
  }
380
+ const cashAppButtonParams = getPayButtonParams(
381
+ props,
382
+ "cashAppButtonParams",
383
+ cashAppContainerRef
384
+ );
385
+ if (cashAppButtonParams) {
386
+ initConfig.cashAppButtonParams = cashAppButtonParams;
387
+ }
373
388
  return clientSdk.init(initConfig);
374
389
  };
375
390
  const onSubscribe = (sdkInstanceValue, callbacks) => {
@@ -447,6 +462,7 @@ const _sfc_main$1 = defineComponent({
447
462
  blikButtonParams: {},
448
463
  mbwayButtonParams: {},
449
464
  pixQrButtonParams: {},
465
+ cashAppButtonParams: {},
450
466
  googlePayContainerRef: {},
451
467
  applePayContainerRef: {},
452
468
  paypalContainerRef: {},
@@ -455,6 +471,7 @@ const _sfc_main$1 = defineComponent({
455
471
  blikContainerRef: {},
456
472
  mbwayContainerRef: {},
457
473
  pixQrContainerRef: {},
474
+ cashAppContainerRef: {},
458
475
  onReadyPaymentInstance: {},
459
476
  onPaymentDetails: { type: Function, default: () => {
460
477
  } },
@@ -500,6 +517,7 @@ const _sfc_main$1 = defineComponent({
500
517
  blikButtonParams: props.blikButtonParams,
501
518
  mbwayButtonParams: props.mbwayButtonParams,
502
519
  pixQrButtonParams: props.pixQrButtonParams,
520
+ cashAppButtonParams: props.cashAppButtonParams,
503
521
  googlePayContainerRef: props.googlePayContainerRef,
504
522
  applePayContainerRef: props.applePayContainerRef,
505
523
  paypalContainerRef: props.paypalContainerRef,
@@ -507,7 +525,8 @@ const _sfc_main$1 = defineComponent({
507
525
  bizumContainerRef: props.bizumContainerRef,
508
526
  blikContainerRef: props.blikContainerRef,
509
527
  mbwayContainerRef: props.mbwayContainerRef,
510
- pixQrContainerRef: props.pixQrContainerRef
528
+ pixQrContainerRef: props.pixQrContainerRef,
529
+ cashAppContainerRef: props.cashAppContainerRef
511
530
  };
512
531
  const callbacks = {
513
532
  onMounted: (e) => props.onMounted && props.onMounted(e),
@@ -552,7 +571,7 @@ const _sfc_main$1 = defineComponent({
552
571
  };
553
572
  }
554
573
  });
555
- var Payment = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-d55f0b28"]]);
574
+ var Payment = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-7d8931f2"]]);
556
575
  const initResignForm = async (config) => {
557
576
  if (!config.resignRequest) {
558
577
  throw new Error("Attribute 'resignRequest' is required");
@@ -13,6 +13,7 @@ interface PaymentProps extends Partial<ClientSdkEventsProvider> {
13
13
  blikButtonParams?: Omit<InitConfig['blikButtonParams'], 'containerId'>;
14
14
  mbwayButtonParams?: Omit<InitConfig['mbwayButtonParams'], 'containerId'>;
15
15
  pixQrButtonParams?: Omit<InitConfig['pixQrButtonParams'], 'containerId'>;
16
+ cashAppButtonParams?: Omit<InitConfig['cashAppButtonParams'], 'containerId'>;
16
17
  googlePayContainerRef?: HTMLDivElement;
17
18
  applePayContainerRef?: HTMLDivElement;
18
19
  paypalContainerRef?: HTMLDivElement;
@@ -21,6 +22,7 @@ interface PaymentProps extends Partial<ClientSdkEventsProvider> {
21
22
  blikContainerRef?: HTMLDivElement;
22
23
  mbwayContainerRef?: HTMLDivElement;
23
24
  pixQrContainerRef?: HTMLDivElement;
25
+ cashAppContainerRef?: HTMLDivElement;
24
26
  onReadyPaymentInstance?: (paymentInstance: ClientSdkInstance) => void;
25
27
  }
26
28
  export default PaymentProps;
@@ -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'>(config: InitConfig, key: T, container: HTMLElement | undefined): NonNullable<InitConfig[T]> | undefined;
2
+ declare function getPayButtonParams<T extends 'googlePayButtonParams' | 'applePayButtonParams' | 'paypalButtonParams' | 'pixButtonParams' | 'bizumButtonParams' | 'blikButtonParams' | 'mbwayButtonParams' | 'pixQrButtonParams' | 'cashAppButtonParams'>(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.28.0",
3
+ "version": "1.30.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.28.0"
31
+ "@solidgate/client-sdk-loader": "^1.30.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@babel/types": "^7.24.5",