@solidgate/vue-sdk 1.30.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
|
@@ -100,6 +100,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
100
100
|
mbwayContainerRef?: HTMLDivElement | undefined;
|
|
101
101
|
pixQrContainerRef?: HTMLDivElement | undefined;
|
|
102
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;
|
|
103
109
|
onReadyPaymentInstance?: ((paymentInstance: ClientSdkInstance) => void) | undefined;
|
|
104
110
|
onPaymentDetails?: ((e: PaymentDetailsMessage) => void) | undefined;
|
|
105
111
|
onMounted?: ((e: MountedMessage) => void) | undefined;
|
|
@@ -242,6 +248,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
242
248
|
mbwayContainerRef?: HTMLDivElement | undefined;
|
|
243
249
|
pixQrContainerRef?: HTMLDivElement | undefined;
|
|
244
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;
|
|
245
257
|
onReadyPaymentInstance?: ((paymentInstance: ClientSdkInstance) => void) | undefined;
|
|
246
258
|
onPaymentDetails?: ((e: PaymentDetailsMessage) => void) | undefined;
|
|
247
259
|
onMounted?: ((e: MountedMessage) => void) | undefined;
|
|
@@ -8,4 +8,5 @@ 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
|
-
|
|
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
|
@@ -9,6 +9,7 @@ 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
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}`;
|
|
12
13
|
var MessageType;
|
|
13
14
|
(function(MessageType2) {
|
|
14
15
|
MessageType2["Mounted"] = "mounted";
|
|
@@ -93,6 +94,7 @@ var PayableEntity;
|
|
|
93
94
|
PayableEntity2["Blik"] = "blik";
|
|
94
95
|
PayableEntity2["Mbway"] = "mbway";
|
|
95
96
|
PayableEntity2["CashApp"] = "cashapp";
|
|
97
|
+
PayableEntity2["PixAutomatico"] = "pix-automatico";
|
|
96
98
|
})(PayableEntity || (PayableEntity = {}));
|
|
97
99
|
var PayableEntity$1 = PayableEntity;
|
|
98
100
|
var InteractionType;
|
|
@@ -258,6 +260,10 @@ const payButtonIds = {
|
|
|
258
260
|
cashAppButtonParams: {
|
|
259
261
|
title: "CashApp",
|
|
260
262
|
id: CASHAPP_BUTTON_CONTAINER_ID
|
|
263
|
+
},
|
|
264
|
+
pixAutomaticoButtonParams: {
|
|
265
|
+
title: "Pix Autom\xE1tico",
|
|
266
|
+
id: PIX_AUTOMATICO_BUTTON_CONTAINER_ID
|
|
261
267
|
}
|
|
262
268
|
};
|
|
263
269
|
function getPayButtonParams(config, key, container) {
|
|
@@ -295,7 +301,8 @@ const initPaymentForm = async (props) => {
|
|
|
295
301
|
blikContainerRef,
|
|
296
302
|
mbwayContainerRef,
|
|
297
303
|
pixQrContainerRef,
|
|
298
|
-
cashAppContainerRef
|
|
304
|
+
cashAppContainerRef,
|
|
305
|
+
pixAutomaticoContainerRef
|
|
299
306
|
} = props;
|
|
300
307
|
if (!merchantData) {
|
|
301
308
|
throw new Error("Attribute 'merchantData' is required");
|
|
@@ -385,6 +392,14 @@ const initPaymentForm = async (props) => {
|
|
|
385
392
|
if (cashAppButtonParams) {
|
|
386
393
|
initConfig.cashAppButtonParams = cashAppButtonParams;
|
|
387
394
|
}
|
|
395
|
+
const pixAutomaticoButtonParams = getPayButtonParams(
|
|
396
|
+
props,
|
|
397
|
+
"pixAutomaticoButtonParams",
|
|
398
|
+
pixAutomaticoContainerRef
|
|
399
|
+
);
|
|
400
|
+
if (pixAutomaticoButtonParams) {
|
|
401
|
+
initConfig.pixAutomaticoButtonParams = pixAutomaticoButtonParams;
|
|
402
|
+
}
|
|
388
403
|
return clientSdk.init(initConfig);
|
|
389
404
|
};
|
|
390
405
|
const onSubscribe = (sdkInstanceValue, callbacks) => {
|
|
@@ -472,6 +487,8 @@ const _sfc_main$1 = defineComponent({
|
|
|
472
487
|
mbwayContainerRef: {},
|
|
473
488
|
pixQrContainerRef: {},
|
|
474
489
|
cashAppContainerRef: {},
|
|
490
|
+
pixAutomaticoButtonParams: {},
|
|
491
|
+
pixAutomaticoContainerRef: {},
|
|
475
492
|
onReadyPaymentInstance: {},
|
|
476
493
|
onPaymentDetails: { type: Function, default: () => {
|
|
477
494
|
} },
|
|
@@ -518,6 +535,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
518
535
|
mbwayButtonParams: props.mbwayButtonParams,
|
|
519
536
|
pixQrButtonParams: props.pixQrButtonParams,
|
|
520
537
|
cashAppButtonParams: props.cashAppButtonParams,
|
|
538
|
+
pixAutomaticoButtonParams: props.pixAutomaticoButtonParams,
|
|
521
539
|
googlePayContainerRef: props.googlePayContainerRef,
|
|
522
540
|
applePayContainerRef: props.applePayContainerRef,
|
|
523
541
|
paypalContainerRef: props.paypalContainerRef,
|
|
@@ -526,7 +544,8 @@ const _sfc_main$1 = defineComponent({
|
|
|
526
544
|
blikContainerRef: props.blikContainerRef,
|
|
527
545
|
mbwayContainerRef: props.mbwayContainerRef,
|
|
528
546
|
pixQrContainerRef: props.pixQrContainerRef,
|
|
529
|
-
cashAppContainerRef: props.cashAppContainerRef
|
|
547
|
+
cashAppContainerRef: props.cashAppContainerRef,
|
|
548
|
+
pixAutomaticoContainerRef: props.pixAutomaticoContainerRef
|
|
530
549
|
};
|
|
531
550
|
const callbacks = {
|
|
532
551
|
onMounted: (e) => props.onMounted && props.onMounted(e),
|
|
@@ -571,7 +590,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
571
590
|
};
|
|
572
591
|
}
|
|
573
592
|
});
|
|
574
|
-
var Payment = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
593
|
+
var Payment = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-46038224"]]);
|
|
575
594
|
const initResignForm = async (config) => {
|
|
576
595
|
if (!config.resignRequest) {
|
|
577
596
|
throw new Error("Attribute 'resignRequest' is required");
|
|
@@ -14,6 +14,7 @@ interface PaymentProps extends Partial<ClientSdkEventsProvider> {
|
|
|
14
14
|
mbwayButtonParams?: Omit<InitConfig['mbwayButtonParams'], 'containerId'>;
|
|
15
15
|
pixQrButtonParams?: Omit<InitConfig['pixQrButtonParams'], 'containerId'>;
|
|
16
16
|
cashAppButtonParams?: Omit<InitConfig['cashAppButtonParams'], 'containerId'>;
|
|
17
|
+
pixAutomaticoButtonParams?: Omit<InitConfig['pixAutomaticoButtonParams'], 'containerId'>;
|
|
17
18
|
googlePayContainerRef?: HTMLDivElement;
|
|
18
19
|
applePayContainerRef?: HTMLDivElement;
|
|
19
20
|
paypalContainerRef?: HTMLDivElement;
|
|
@@ -23,6 +24,7 @@ interface PaymentProps extends Partial<ClientSdkEventsProvider> {
|
|
|
23
24
|
mbwayContainerRef?: HTMLDivElement;
|
|
24
25
|
pixQrContainerRef?: HTMLDivElement;
|
|
25
26
|
cashAppContainerRef?: HTMLDivElement;
|
|
27
|
+
pixAutomaticoContainerRef?: HTMLDivElement;
|
|
26
28
|
onReadyPaymentInstance?: (paymentInstance: ClientSdkInstance) => void;
|
|
27
29
|
}
|
|
28
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' | 'cashAppButtonParams'>(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",
|