@solidgate/vue-sdk 1.33.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.
- package/dist/Payment.vue.d.ts +12 -0
- package/dist/index.css +1 -1
- package/dist/index.es.js +8 -3
- package/dist/interfaces/PaymentProps.d.ts +1 -0
- package/package.json +2 -2
package/dist/Payment.vue.d.ts
CHANGED
|
@@ -118,6 +118,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
118
118
|
resetEnabled?: boolean | undefined;
|
|
119
119
|
} | undefined, "containerId"> | undefined;
|
|
120
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;
|
|
121
127
|
onReadyPaymentInstance?: ((paymentInstance: ClientSdkInstance) => void) | undefined;
|
|
122
128
|
onPaymentDetails?: ((e: PaymentDetailsMessage) => void) | undefined;
|
|
123
129
|
onMounted?: ((e: MountedMessage) => void) | undefined;
|
|
@@ -278,6 +284,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
278
284
|
resetEnabled?: boolean | undefined;
|
|
279
285
|
} | undefined, "containerId"> | undefined;
|
|
280
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;
|
|
281
293
|
onReadyPaymentInstance?: ((paymentInstance: ClientSdkInstance) => void) | undefined;
|
|
282
294
|
onPaymentDetails?: ((e: PaymentDetailsMessage) => void) | undefined;
|
|
283
295
|
onMounted?: ((e: MountedMessage) => void) | undefined;
|
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.payment-form-container[data-v-
|
|
1
|
+
.payment-form-container[data-v-5dc2e41f] iframe,.payment-form-container[data-v-77b30339] iframe{border:none}
|
package/dist/index.es.js
CHANGED
|
@@ -97,6 +97,7 @@ var PayableEntity;
|
|
|
97
97
|
PayableEntity2["Mbway"] = "mbway";
|
|
98
98
|
PayableEntity2["CashApp"] = "cashapp";
|
|
99
99
|
PayableEntity2["PixAutomatico"] = "pix-automatico";
|
|
100
|
+
PayableEntity2["ClickToPay"] = "clicktopay";
|
|
100
101
|
})(PayableEntity || (PayableEntity = {}));
|
|
101
102
|
var PayableEntity$1 = PayableEntity;
|
|
102
103
|
var InteractionType;
|
|
@@ -310,7 +311,8 @@ const initPaymentForm = async (props) => {
|
|
|
310
311
|
mbwayContainerRef,
|
|
311
312
|
pixQrContainerRef,
|
|
312
313
|
cashAppContainerRef,
|
|
313
|
-
pixAutomaticoContainerRef
|
|
314
|
+
pixAutomaticoContainerRef,
|
|
315
|
+
clickToPayButtonParams
|
|
314
316
|
} = props;
|
|
315
317
|
if (!merchantData) {
|
|
316
318
|
throw new Error("Attribute 'merchantData' is required");
|
|
@@ -326,7 +328,8 @@ const initPaymentForm = async (props) => {
|
|
|
326
328
|
...width && { width }
|
|
327
329
|
},
|
|
328
330
|
...formParams && { formParams },
|
|
329
|
-
...styles && { styles }
|
|
331
|
+
...styles && { styles },
|
|
332
|
+
...clickToPayButtonParams && { clickToPayButtonParams }
|
|
330
333
|
};
|
|
331
334
|
const googleButtonParams = getPayButtonParams(
|
|
332
335
|
props,
|
|
@@ -507,6 +510,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
507
510
|
cashAppContainerRef: {},
|
|
508
511
|
pixAutomaticoButtonParams: {},
|
|
509
512
|
pixAutomaticoContainerRef: {},
|
|
513
|
+
clickToPayButtonParams: {},
|
|
510
514
|
onReadyPaymentInstance: {},
|
|
511
515
|
onPaymentDetails: { type: Function, default: () => {
|
|
512
516
|
} },
|
|
@@ -555,6 +559,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
555
559
|
pixQrButtonParams: props.pixQrButtonParams,
|
|
556
560
|
cashAppButtonParams: props.cashAppButtonParams,
|
|
557
561
|
pixAutomaticoButtonParams: props.pixAutomaticoButtonParams,
|
|
562
|
+
clickToPayButtonParams: props.clickToPayButtonParams,
|
|
558
563
|
googlePayContainerRef: props.googlePayContainerRef,
|
|
559
564
|
applePayContainerRef: props.applePayContainerRef,
|
|
560
565
|
paypalContainerRef: props.paypalContainerRef,
|
|
@@ -610,7 +615,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
610
615
|
};
|
|
611
616
|
}
|
|
612
617
|
});
|
|
613
|
-
var Payment = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
618
|
+
var Payment = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-5dc2e41f"]]);
|
|
614
619
|
const initResignForm = async (config) => {
|
|
615
620
|
if (!config.resignRequest) {
|
|
616
621
|
throw new Error("Attribute 'resignRequest' is required");
|
|
@@ -16,6 +16,7 @@ interface PaymentProps extends Partial<ClientSdkEventsProvider> {
|
|
|
16
16
|
pixQrButtonParams?: Omit<InitConfig['pixQrButtonParams'], 'containerId'>;
|
|
17
17
|
cashAppButtonParams?: Omit<InitConfig['cashAppButtonParams'], 'containerId'>;
|
|
18
18
|
pixAutomaticoButtonParams?: Omit<InitConfig['pixAutomaticoButtonParams'], 'containerId'>;
|
|
19
|
+
clickToPayButtonParams?: InitConfig['clickToPayButtonParams'];
|
|
19
20
|
googlePayContainerRef?: HTMLDivElement;
|
|
20
21
|
applePayContainerRef?: HTMLDivElement;
|
|
21
22
|
paypalContainerRef?: HTMLDivElement;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solidgate/vue-sdk",
|
|
3
|
-
"version": "1.
|
|
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.
|
|
31
|
+
"@solidgate/client-sdk-loader": "^1.34.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@babel/types": "^7.24.5",
|