@solidgate/vue-sdk 1.29.0 → 1.31.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,13 @@ 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;
|
|
103
|
+
pixAutomaticoButtonParams?: Omit<{
|
|
104
|
+
containerId?: string | undefined;
|
|
105
|
+
enabled?: boolean | undefined;
|
|
106
|
+
height?: number | undefined;
|
|
107
|
+
} | undefined, "containerId"> | undefined;
|
|
108
|
+
pixAutomaticoContainerRef?: HTMLDivElement | undefined;
|
|
98
109
|
onReadyPaymentInstance?: ((paymentInstance: ClientSdkInstance) => void) | undefined;
|
|
99
110
|
onPaymentDetails?: ((e: PaymentDetailsMessage) => void) | undefined;
|
|
100
111
|
onMounted?: ((e: MountedMessage) => void) | undefined;
|
|
@@ -224,6 +235,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
224
235
|
enabled?: boolean | undefined;
|
|
225
236
|
height?: number | undefined;
|
|
226
237
|
} | undefined, "containerId"> | undefined;
|
|
238
|
+
cashAppButtonParams?: Omit<{
|
|
239
|
+
containerId?: string | undefined;
|
|
240
|
+
enabled?: boolean | undefined;
|
|
241
|
+
} | undefined, "containerId"> | undefined;
|
|
227
242
|
googlePayContainerRef?: HTMLDivElement | undefined;
|
|
228
243
|
applePayContainerRef?: HTMLDivElement | undefined;
|
|
229
244
|
paypalContainerRef?: HTMLDivElement | undefined;
|
|
@@ -232,6 +247,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
232
247
|
blikContainerRef?: HTMLDivElement | undefined;
|
|
233
248
|
mbwayContainerRef?: HTMLDivElement | undefined;
|
|
234
249
|
pixQrContainerRef?: HTMLDivElement | undefined;
|
|
250
|
+
cashAppContainerRef?: HTMLDivElement | undefined;
|
|
251
|
+
pixAutomaticoButtonParams?: Omit<{
|
|
252
|
+
containerId?: string | undefined;
|
|
253
|
+
enabled?: boolean | undefined;
|
|
254
|
+
height?: number | undefined;
|
|
255
|
+
} | undefined, "containerId"> | undefined;
|
|
256
|
+
pixAutomaticoContainerRef?: HTMLDivElement | undefined;
|
|
235
257
|
onReadyPaymentInstance?: ((paymentInstance: ClientSdkInstance) => void) | undefined;
|
|
236
258
|
onPaymentDetails?: ((e: PaymentDetailsMessage) => void) | undefined;
|
|
237
259
|
onMounted?: ((e: MountedMessage) => void) | undefined;
|
|
@@ -7,4 +7,6 @@ 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
|
+
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 };
|
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.payment-form-container[data-v-
|
|
1
|
+
.payment-form-container[data-v-46038224] iframe,.payment-form-container[data-v-77b30339] iframe{border:none}
|
package/dist/index.es.js
CHANGED
|
@@ -8,6 +8,8 @@ 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}`;
|
|
12
|
+
const PIX_AUTOMATICO_BUTTON_CONTAINER_ID = `pix-automatico-button-container_#${Math.random() * 1e4}`;
|
|
11
13
|
var MessageType;
|
|
12
14
|
(function(MessageType2) {
|
|
13
15
|
MessageType2["Mounted"] = "mounted";
|
|
@@ -91,6 +93,8 @@ var PayableEntity;
|
|
|
91
93
|
PayableEntity2["Bizum"] = "bizum";
|
|
92
94
|
PayableEntity2["Blik"] = "blik";
|
|
93
95
|
PayableEntity2["Mbway"] = "mbway";
|
|
96
|
+
PayableEntity2["CashApp"] = "cashapp";
|
|
97
|
+
PayableEntity2["PixAutomatico"] = "pix-automatico";
|
|
94
98
|
})(PayableEntity || (PayableEntity = {}));
|
|
95
99
|
var PayableEntity$1 = PayableEntity;
|
|
96
100
|
var InteractionType;
|
|
@@ -252,6 +256,14 @@ const payButtonIds = {
|
|
|
252
256
|
pixQrButtonParams: {
|
|
253
257
|
title: "Pix QR",
|
|
254
258
|
id: PIX_QR_BUTTON_CONTAINER_ID
|
|
259
|
+
},
|
|
260
|
+
cashAppButtonParams: {
|
|
261
|
+
title: "CashApp",
|
|
262
|
+
id: CASHAPP_BUTTON_CONTAINER_ID
|
|
263
|
+
},
|
|
264
|
+
pixAutomaticoButtonParams: {
|
|
265
|
+
title: "Pix Autom\xE1tico",
|
|
266
|
+
id: PIX_AUTOMATICO_BUTTON_CONTAINER_ID
|
|
255
267
|
}
|
|
256
268
|
};
|
|
257
269
|
function getPayButtonParams(config, key, container) {
|
|
@@ -288,7 +300,9 @@ const initPaymentForm = async (props) => {
|
|
|
288
300
|
bizumContainerRef,
|
|
289
301
|
blikContainerRef,
|
|
290
302
|
mbwayContainerRef,
|
|
291
|
-
pixQrContainerRef
|
|
303
|
+
pixQrContainerRef,
|
|
304
|
+
cashAppContainerRef,
|
|
305
|
+
pixAutomaticoContainerRef
|
|
292
306
|
} = props;
|
|
293
307
|
if (!merchantData) {
|
|
294
308
|
throw new Error("Attribute 'merchantData' is required");
|
|
@@ -370,6 +384,22 @@ const initPaymentForm = async (props) => {
|
|
|
370
384
|
if (pixQrButtonParams) {
|
|
371
385
|
initConfig.pixQrButtonParams = pixQrButtonParams;
|
|
372
386
|
}
|
|
387
|
+
const cashAppButtonParams = getPayButtonParams(
|
|
388
|
+
props,
|
|
389
|
+
"cashAppButtonParams",
|
|
390
|
+
cashAppContainerRef
|
|
391
|
+
);
|
|
392
|
+
if (cashAppButtonParams) {
|
|
393
|
+
initConfig.cashAppButtonParams = cashAppButtonParams;
|
|
394
|
+
}
|
|
395
|
+
const pixAutomaticoButtonParams = getPayButtonParams(
|
|
396
|
+
props,
|
|
397
|
+
"pixAutomaticoButtonParams",
|
|
398
|
+
pixAutomaticoContainerRef
|
|
399
|
+
);
|
|
400
|
+
if (pixAutomaticoButtonParams) {
|
|
401
|
+
initConfig.pixAutomaticoButtonParams = pixAutomaticoButtonParams;
|
|
402
|
+
}
|
|
373
403
|
return clientSdk.init(initConfig);
|
|
374
404
|
};
|
|
375
405
|
const onSubscribe = (sdkInstanceValue, callbacks) => {
|
|
@@ -447,6 +477,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
447
477
|
blikButtonParams: {},
|
|
448
478
|
mbwayButtonParams: {},
|
|
449
479
|
pixQrButtonParams: {},
|
|
480
|
+
cashAppButtonParams: {},
|
|
450
481
|
googlePayContainerRef: {},
|
|
451
482
|
applePayContainerRef: {},
|
|
452
483
|
paypalContainerRef: {},
|
|
@@ -455,6 +486,9 @@ const _sfc_main$1 = defineComponent({
|
|
|
455
486
|
blikContainerRef: {},
|
|
456
487
|
mbwayContainerRef: {},
|
|
457
488
|
pixQrContainerRef: {},
|
|
489
|
+
cashAppContainerRef: {},
|
|
490
|
+
pixAutomaticoButtonParams: {},
|
|
491
|
+
pixAutomaticoContainerRef: {},
|
|
458
492
|
onReadyPaymentInstance: {},
|
|
459
493
|
onPaymentDetails: { type: Function, default: () => {
|
|
460
494
|
} },
|
|
@@ -500,6 +534,8 @@ const _sfc_main$1 = defineComponent({
|
|
|
500
534
|
blikButtonParams: props.blikButtonParams,
|
|
501
535
|
mbwayButtonParams: props.mbwayButtonParams,
|
|
502
536
|
pixQrButtonParams: props.pixQrButtonParams,
|
|
537
|
+
cashAppButtonParams: props.cashAppButtonParams,
|
|
538
|
+
pixAutomaticoButtonParams: props.pixAutomaticoButtonParams,
|
|
503
539
|
googlePayContainerRef: props.googlePayContainerRef,
|
|
504
540
|
applePayContainerRef: props.applePayContainerRef,
|
|
505
541
|
paypalContainerRef: props.paypalContainerRef,
|
|
@@ -507,7 +543,9 @@ const _sfc_main$1 = defineComponent({
|
|
|
507
543
|
bizumContainerRef: props.bizumContainerRef,
|
|
508
544
|
blikContainerRef: props.blikContainerRef,
|
|
509
545
|
mbwayContainerRef: props.mbwayContainerRef,
|
|
510
|
-
pixQrContainerRef: props.pixQrContainerRef
|
|
546
|
+
pixQrContainerRef: props.pixQrContainerRef,
|
|
547
|
+
cashAppContainerRef: props.cashAppContainerRef,
|
|
548
|
+
pixAutomaticoContainerRef: props.pixAutomaticoContainerRef
|
|
511
549
|
};
|
|
512
550
|
const callbacks = {
|
|
513
551
|
onMounted: (e) => props.onMounted && props.onMounted(e),
|
|
@@ -552,7 +590,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
552
590
|
};
|
|
553
591
|
}
|
|
554
592
|
});
|
|
555
|
-
var Payment = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
593
|
+
var Payment = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-46038224"]]);
|
|
556
594
|
const initResignForm = async (config) => {
|
|
557
595
|
if (!config.resignRequest) {
|
|
558
596
|
throw new Error("Attribute 'resignRequest' is required");
|
|
@@ -13,6 +13,8 @@ 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'>;
|
|
17
|
+
pixAutomaticoButtonParams?: Omit<InitConfig['pixAutomaticoButtonParams'], 'containerId'>;
|
|
16
18
|
googlePayContainerRef?: HTMLDivElement;
|
|
17
19
|
applePayContainerRef?: HTMLDivElement;
|
|
18
20
|
paypalContainerRef?: HTMLDivElement;
|
|
@@ -21,6 +23,8 @@ interface PaymentProps extends Partial<ClientSdkEventsProvider> {
|
|
|
21
23
|
blikContainerRef?: HTMLDivElement;
|
|
22
24
|
mbwayContainerRef?: HTMLDivElement;
|
|
23
25
|
pixQrContainerRef?: HTMLDivElement;
|
|
26
|
+
cashAppContainerRef?: HTMLDivElement;
|
|
27
|
+
pixAutomaticoContainerRef?: HTMLDivElement;
|
|
24
28
|
onReadyPaymentInstance?: (paymentInstance: ClientSdkInstance) => void;
|
|
25
29
|
}
|
|
26
30
|
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' | '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.31.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.31.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@babel/types": "^7.24.5",
|