@solidgate/vue-sdk 1.29.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.
package/dist/Payment.vue.d.ts
CHANGED
|
@@ -87,6 +87,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
87
87
|
enabled?: boolean | undefined;
|
|
88
88
|
height?: number | undefined;
|
|
89
89
|
} | undefined, "containerId"> | undefined;
|
|
90
|
+
cashAppButtonParams?: Omit<{
|
|
91
|
+
containerId?: string | undefined;
|
|
92
|
+
enabled?: boolean | undefined;
|
|
93
|
+
} | undefined, "containerId"> | undefined;
|
|
90
94
|
googlePayContainerRef?: HTMLDivElement | undefined;
|
|
91
95
|
applePayContainerRef?: HTMLDivElement | undefined;
|
|
92
96
|
paypalContainerRef?: HTMLDivElement | undefined;
|
|
@@ -95,6 +99,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
95
99
|
blikContainerRef?: HTMLDivElement | undefined;
|
|
96
100
|
mbwayContainerRef?: HTMLDivElement | undefined;
|
|
97
101
|
pixQrContainerRef?: HTMLDivElement | undefined;
|
|
102
|
+
cashAppContainerRef?: HTMLDivElement | undefined;
|
|
98
103
|
onReadyPaymentInstance?: ((paymentInstance: ClientSdkInstance) => void) | undefined;
|
|
99
104
|
onPaymentDetails?: ((e: PaymentDetailsMessage) => void) | undefined;
|
|
100
105
|
onMounted?: ((e: MountedMessage) => void) | undefined;
|
|
@@ -224,6 +229,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
224
229
|
enabled?: boolean | undefined;
|
|
225
230
|
height?: number | undefined;
|
|
226
231
|
} | undefined, "containerId"> | undefined;
|
|
232
|
+
cashAppButtonParams?: Omit<{
|
|
233
|
+
containerId?: string | undefined;
|
|
234
|
+
enabled?: boolean | undefined;
|
|
235
|
+
} | undefined, "containerId"> | undefined;
|
|
227
236
|
googlePayContainerRef?: HTMLDivElement | undefined;
|
|
228
237
|
applePayContainerRef?: HTMLDivElement | undefined;
|
|
229
238
|
paypalContainerRef?: HTMLDivElement | undefined;
|
|
@@ -232,6 +241,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
232
241
|
blikContainerRef?: HTMLDivElement | undefined;
|
|
233
242
|
mbwayContainerRef?: HTMLDivElement | undefined;
|
|
234
243
|
pixQrContainerRef?: HTMLDivElement | undefined;
|
|
244
|
+
cashAppContainerRef?: HTMLDivElement | undefined;
|
|
235
245
|
onReadyPaymentInstance?: ((paymentInstance: ClientSdkInstance) => void) | undefined;
|
|
236
246
|
onPaymentDetails?: ((e: PaymentDetailsMessage) => void) | undefined;
|
|
237
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
|
-
|
|
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-
|
|
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-
|
|
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.
|
|
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.
|
|
31
|
+
"@solidgate/client-sdk-loader": "^1.30.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@babel/types": "^7.24.5",
|