@solidgate/vue-sdk 1.15.2 → 1.17.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/README.md +1 -1
- package/dist/Payment.vue.d.ts +6 -6
- package/dist/Resign.vue.d.ts +2 -0
- package/dist/index.es.js +94 -134
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -72,7 +72,7 @@ const merchantData: InitConfig['merchantData'] = {
|
|
|
72
72
|
|
|
73
73
|
#### Custom containers
|
|
74
74
|
|
|
75
|
-
To render <a href="https://docs.solidgate.com/payments/integrate/payment-form/google-pay-button/" target="_blank">Google Pay
|
|
75
|
+
To render <a href="https://docs.solidgate.com/payments/integrate/payment-form/google-pay-button/" target="_blank">Google Pay</a>, <a href="https://docs.solidgate.com/payments/integrate/payment-form/apple-pay-button/" target="_blank">Apple Pay</a>, or <a href="https://docs.solidgate.com/payments/integrate/payment-form/paypal-button/" target="_blank">PayPal</a> buttons in separate containers, define Payment as an asynchronous component and pass references to the container elements.
|
|
76
76
|
|
|
77
77
|
```vue
|
|
78
78
|
<template>
|
package/dist/Payment.vue.d.ts
CHANGED
|
@@ -15,13 +15,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
15
15
|
autoFocus: boolean;
|
|
16
16
|
submitButtonText: string;
|
|
17
17
|
isCardHolderVisible: boolean;
|
|
18
|
-
buttonType: import("@solidgate/client-sdk-loader/dist/enums/FormButtonType").default;
|
|
18
|
+
buttonType: import("@solidgate/client-sdk-loader/dist/esm/enums/FormButtonType").default;
|
|
19
19
|
headerText: string;
|
|
20
20
|
titleText: string;
|
|
21
|
-
formTypeClass: import("@solidgate/client-sdk-loader/dist/enums/FormType").default;
|
|
21
|
+
formTypeClass: import("@solidgate/client-sdk-loader/dist/esm/enums/FormType").default;
|
|
22
22
|
isSolidLogoVisible: boolean;
|
|
23
23
|
cardBrands: import("@solidgate/client-sdk-loader").CardBrand[];
|
|
24
|
-
secureBrands: import("@solidgate/client-sdk-loader/dist/enums/SecureBrand").default[];
|
|
24
|
+
secureBrands: import("@solidgate/client-sdk-loader/dist/esm/enums/SecureBrand").default[];
|
|
25
25
|
allowSubmit: boolean;
|
|
26
26
|
googleFontLink: string;
|
|
27
27
|
cardNumberLabel: string;
|
|
@@ -119,13 +119,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
119
119
|
autoFocus: boolean;
|
|
120
120
|
submitButtonText: string;
|
|
121
121
|
isCardHolderVisible: boolean;
|
|
122
|
-
buttonType: import("@solidgate/client-sdk-loader/dist/enums/FormButtonType").default;
|
|
122
|
+
buttonType: import("@solidgate/client-sdk-loader/dist/esm/enums/FormButtonType").default;
|
|
123
123
|
headerText: string;
|
|
124
124
|
titleText: string;
|
|
125
|
-
formTypeClass: import("@solidgate/client-sdk-loader/dist/enums/FormType").default;
|
|
125
|
+
formTypeClass: import("@solidgate/client-sdk-loader/dist/esm/enums/FormType").default;
|
|
126
126
|
isSolidLogoVisible: boolean;
|
|
127
127
|
cardBrands: import("@solidgate/client-sdk-loader").CardBrand[];
|
|
128
|
-
secureBrands: import("@solidgate/client-sdk-loader/dist/enums/SecureBrand").default[];
|
|
128
|
+
secureBrands: import("@solidgate/client-sdk-loader/dist/esm/enums/SecureBrand").default[];
|
|
129
129
|
allowSubmit: boolean;
|
|
130
130
|
googleFontLink: string;
|
|
131
131
|
cardNumberLabel: string;
|
package/dist/Resign.vue.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
15
15
|
resignCvvLabel: string;
|
|
16
16
|
resignCvvPlaceholder: string;
|
|
17
17
|
hideCvvNumbers: boolean;
|
|
18
|
+
cardBrandIconStyle: import("@solidgate/client-sdk-loader/dist/esm/enums/CardBrandIconStyle").default;
|
|
18
19
|
}> | undefined;
|
|
19
20
|
styles?: Record<string, unknown> | undefined;
|
|
20
21
|
onReadyResignInstance?: ((resignInstance: ClientSdkInstance) => void) | undefined;
|
|
@@ -73,6 +74,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
73
74
|
resignCvvLabel: string;
|
|
74
75
|
resignCvvPlaceholder: string;
|
|
75
76
|
hideCvvNumbers: boolean;
|
|
77
|
+
cardBrandIconStyle: import("@solidgate/client-sdk-loader/dist/esm/enums/CardBrandIconStyle").default;
|
|
76
78
|
}> | undefined;
|
|
77
79
|
styles?: Record<string, unknown> | undefined;
|
|
78
80
|
onReadyResignInstance?: ((resignInstance: ClientSdkInstance) => void) | undefined;
|
package/dist/index.es.js
CHANGED
|
@@ -3,11 +3,7 @@ import './index.css';const IFRAME_CONTAINER_ID = `solid-payment-form-container_#
|
|
|
3
3
|
const GOOGLE_PAY_BUTTON_CONTAINER_ID = `google-pay-button-container_#${Math.random() * 1e4}`;
|
|
4
4
|
const APPLE_PAY_BUTTON_CONTAINER_ID = `apple-pay-button-container_#${Math.random() * 1e4}`;
|
|
5
5
|
const PAYPAL_BUTTON_CONTAINER_ID = `paypal-button-container_#${Math.random() * 1e4}`;
|
|
6
|
-
var
|
|
7
|
-
var dist = {};
|
|
8
|
-
var MessageType$2 = {};
|
|
9
|
-
Object.defineProperty(MessageType$2, "__esModule", { value: true });
|
|
10
|
-
var MessageType$1;
|
|
6
|
+
var MessageType;
|
|
11
7
|
(function(MessageType2) {
|
|
12
8
|
MessageType2["Mounted"] = "mounted";
|
|
13
9
|
MessageType2["Success"] = "success";
|
|
@@ -22,53 +18,45 @@ var MessageType$1;
|
|
|
22
18
|
MessageType2["CustomStylesAppended"] = "customStylesAppended";
|
|
23
19
|
MessageType2["Card"] = "card";
|
|
24
20
|
MessageType2["PaymentDetails"] = "paymentDetails";
|
|
25
|
-
})(MessageType
|
|
26
|
-
MessageType$
|
|
27
|
-
var FieldName
|
|
28
|
-
Object.defineProperty(FieldName$2, "__esModule", { value: true });
|
|
29
|
-
var FieldName$1;
|
|
21
|
+
})(MessageType || (MessageType = {}));
|
|
22
|
+
var MessageType$1 = MessageType;
|
|
23
|
+
var FieldName;
|
|
30
24
|
(function(FieldName2) {
|
|
31
25
|
FieldName2["CardNumber"] = "cardNumber";
|
|
32
26
|
FieldName2["CardCvv"] = "cardCvv";
|
|
33
27
|
FieldName2["CardHolder"] = "cardHolder";
|
|
34
28
|
FieldName2["CardExpiryDate"] = "cardExpiryDate";
|
|
35
|
-
})(FieldName
|
|
36
|
-
FieldName$
|
|
37
|
-
var CardBrand
|
|
38
|
-
(function(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
})(CardBrand2 = exports.CardBrand || (exports.CardBrand = {}));
|
|
67
|
-
exports.default = CardBrand2;
|
|
68
|
-
})(CardBrand$1);
|
|
69
|
-
var SecureBrand$2 = {};
|
|
70
|
-
Object.defineProperty(SecureBrand$2, "__esModule", { value: true });
|
|
71
|
-
var SecureBrand$1;
|
|
29
|
+
})(FieldName || (FieldName = {}));
|
|
30
|
+
var FieldName$1 = FieldName;
|
|
31
|
+
var CardBrand;
|
|
32
|
+
(function(CardBrand2) {
|
|
33
|
+
CardBrand2["Verve"] = "verve";
|
|
34
|
+
CardBrand2["Visa"] = "visa";
|
|
35
|
+
CardBrand2["Mastercard"] = "mastercard";
|
|
36
|
+
CardBrand2["Maestro"] = "maestro";
|
|
37
|
+
CardBrand2["AmericanExpress"] = "american-express";
|
|
38
|
+
CardBrand2["Jcb"] = "jcb";
|
|
39
|
+
CardBrand2["DinersClub"] = "diners-club";
|
|
40
|
+
CardBrand2["Discover"] = "discover";
|
|
41
|
+
CardBrand2["Aura"] = "aura";
|
|
42
|
+
CardBrand2["Elo"] = "elo";
|
|
43
|
+
CardBrand2["Hipercard"] = "hipercard";
|
|
44
|
+
CardBrand2["CartesBancaires"] = "cartes-bancaires";
|
|
45
|
+
CardBrand2["Rupay"] = "rupay";
|
|
46
|
+
CardBrand2["BCCard"] = "bc-card";
|
|
47
|
+
CardBrand2["UnionPay"] = "unionpay";
|
|
48
|
+
CardBrand2["Dankort"] = "dankort";
|
|
49
|
+
CardBrand2["GPNCard"] = "gpn-card";
|
|
50
|
+
CardBrand2["Troy"] = "troy";
|
|
51
|
+
CardBrand2["ThaiPaymentNetwork"] = "thai-payment-network";
|
|
52
|
+
CardBrand2["MADA"] = "mada";
|
|
53
|
+
CardBrand2["Bancontact"] = "bancontact";
|
|
54
|
+
CardBrand2["Interac"] = "interac";
|
|
55
|
+
CardBrand2["Bajaj"] = "bajaj";
|
|
56
|
+
CardBrand2["Paypal"] = "paypal";
|
|
57
|
+
})(CardBrand || (CardBrand = {}));
|
|
58
|
+
var CardBrand$1 = CardBrand;
|
|
59
|
+
var SecureBrand;
|
|
72
60
|
(function(SecureBrand2) {
|
|
73
61
|
SecureBrand2["VisaSecure"] = "visa-secure";
|
|
74
62
|
SecureBrand2["MccIdCheck"] = "mcc-id-check";
|
|
@@ -76,50 +64,40 @@ var SecureBrand$1;
|
|
|
76
64
|
SecureBrand2["PCIDss"] = "pci-dss";
|
|
77
65
|
SecureBrand2["Norton"] = "norton";
|
|
78
66
|
SecureBrand2["McAffee"] = "mc-affee";
|
|
79
|
-
})(SecureBrand
|
|
80
|
-
SecureBrand$
|
|
81
|
-
var FormType
|
|
82
|
-
Object.defineProperty(FormType$2, "__esModule", { value: true });
|
|
83
|
-
var FormType$1;
|
|
67
|
+
})(SecureBrand || (SecureBrand = {}));
|
|
68
|
+
var SecureBrand$1 = SecureBrand;
|
|
69
|
+
var FormType;
|
|
84
70
|
(function(FormType2) {
|
|
85
71
|
FormType2["Default"] = "default";
|
|
86
72
|
FormType2["Card"] = "card";
|
|
87
73
|
FormType2["Inline"] = "inline";
|
|
88
74
|
FormType2["Flat"] = "flat";
|
|
89
|
-
})(FormType
|
|
90
|
-
FormType$
|
|
91
|
-
var PayableEntity
|
|
92
|
-
Object.defineProperty(PayableEntity$2, "__esModule", { value: true });
|
|
93
|
-
var PayableEntity$1;
|
|
75
|
+
})(FormType || (FormType = {}));
|
|
76
|
+
var FormType$1 = FormType;
|
|
77
|
+
var PayableEntity;
|
|
94
78
|
(function(PayableEntity2) {
|
|
95
79
|
PayableEntity2["ApplePay"] = "applebtn";
|
|
96
80
|
PayableEntity2["GooglePay"] = "googlebtn";
|
|
97
81
|
PayableEntity2["Form"] = "form";
|
|
98
82
|
PayableEntity2["Resign"] = "resign";
|
|
99
83
|
PayableEntity2["Paypal"] = "paypal";
|
|
100
|
-
})(PayableEntity
|
|
101
|
-
PayableEntity$
|
|
102
|
-
var InteractionType
|
|
103
|
-
Object.defineProperty(InteractionType$2, "__esModule", { value: true });
|
|
104
|
-
var InteractionType$1;
|
|
84
|
+
})(PayableEntity || (PayableEntity = {}));
|
|
85
|
+
var PayableEntity$1 = PayableEntity;
|
|
86
|
+
var InteractionType;
|
|
105
87
|
(function(InteractionType2) {
|
|
106
88
|
InteractionType2["Click"] = "click";
|
|
107
89
|
InteractionType2["Focus"] = "focus";
|
|
108
90
|
InteractionType2["Blur"] = "blur";
|
|
109
91
|
InteractionType2["Change"] = "change";
|
|
110
|
-
})(InteractionType
|
|
111
|
-
InteractionType$
|
|
112
|
-
var InteractionTargetType
|
|
113
|
-
Object.defineProperty(InteractionTargetType$2, "__esModule", { value: true });
|
|
114
|
-
var InteractionTargetType$1;
|
|
92
|
+
})(InteractionType || (InteractionType = {}));
|
|
93
|
+
var InteractionType$1 = InteractionType;
|
|
94
|
+
var InteractionTargetType;
|
|
115
95
|
(function(InteractionTargetType2) {
|
|
116
96
|
InteractionTargetType2["Input"] = "input";
|
|
117
97
|
InteractionTargetType2["Button"] = "button";
|
|
118
|
-
})(InteractionTargetType
|
|
119
|
-
InteractionTargetType$
|
|
120
|
-
var AdditionalFieldName
|
|
121
|
-
Object.defineProperty(AdditionalFieldName$2, "__esModule", { value: true });
|
|
122
|
-
var AdditionalFieldName$1;
|
|
98
|
+
})(InteractionTargetType || (InteractionTargetType = {}));
|
|
99
|
+
var InteractionTargetType$1 = InteractionTargetType;
|
|
100
|
+
var AdditionalFieldName;
|
|
123
101
|
(function(AdditionalFieldName2) {
|
|
124
102
|
AdditionalFieldName2["ZipCode"] = "zip\u0421ode";
|
|
125
103
|
AdditionalFieldName2["ArgentinaDni"] = "argentinaDni";
|
|
@@ -157,25 +135,29 @@ var AdditionalFieldName$1;
|
|
|
157
135
|
AdditionalFieldName2["UgandaNic"] = "ugandaNic";
|
|
158
136
|
AdditionalFieldName2["UriguayCi"] = "uriguayCi";
|
|
159
137
|
AdditionalFieldName2["VietnamVnid"] = "vietnamVnid";
|
|
160
|
-
})(AdditionalFieldName
|
|
161
|
-
AdditionalFieldName$
|
|
162
|
-
var FormButtonType
|
|
163
|
-
Object.defineProperty(FormButtonType$2, "__esModule", { value: true });
|
|
164
|
-
var FormButtonType$1;
|
|
138
|
+
})(AdditionalFieldName || (AdditionalFieldName = {}));
|
|
139
|
+
var AdditionalFieldName$1 = AdditionalFieldName;
|
|
140
|
+
var FormButtonType;
|
|
165
141
|
(function(FormButtonType2) {
|
|
166
142
|
FormButtonType2["Default"] = "default";
|
|
167
143
|
FormButtonType2["Continue"] = "continue";
|
|
168
|
-
})(FormButtonType
|
|
169
|
-
FormButtonType$
|
|
170
|
-
var
|
|
171
|
-
|
|
144
|
+
})(FormButtonType || (FormButtonType = {}));
|
|
145
|
+
var FormButtonType$1 = FormButtonType;
|
|
146
|
+
var CardBrandIconStyle;
|
|
147
|
+
(function(CardBrandIconStyle2) {
|
|
148
|
+
CardBrandIconStyle2["MonochromeLight"] = "monochrome-light";
|
|
149
|
+
CardBrandIconStyle2["MonochromeDark"] = "monochrome-dark";
|
|
150
|
+
CardBrandIconStyle2["Colored"] = "colored";
|
|
151
|
+
})(CardBrandIconStyle || (CardBrandIconStyle = {}));
|
|
152
|
+
var CardBrandIconStyle$1 = CardBrandIconStyle;
|
|
153
|
+
var __classPrivateFieldGet = globalThis && globalThis.__classPrivateFieldGet || function(receiver, state, kind, f) {
|
|
172
154
|
if (kind === "a" && !f)
|
|
173
155
|
throw new TypeError("Private accessor was defined without a getter");
|
|
174
156
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
175
157
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
176
158
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
177
159
|
};
|
|
178
|
-
var __classPrivateFieldSet =
|
|
160
|
+
var __classPrivateFieldSet = globalThis && globalThis.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
|
179
161
|
if (kind === "m")
|
|
180
162
|
throw new TypeError("Private method is not writable");
|
|
181
163
|
if (kind === "a" && !f)
|
|
@@ -184,25 +166,31 @@ var __classPrivateFieldSet = commonjsGlobal && commonjsGlobal.__classPrivateFiel
|
|
|
184
166
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
185
167
|
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
186
168
|
};
|
|
187
|
-
var _a, _SdkLoader_CloudfrontSrc, _SdkLoader_loadAttempt;
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
static load() {
|
|
169
|
+
var _a, _SdkLoader_CloudfrontSrc, _SdkLoader_loadAttempt, _SdkLoader_previousAttemptUrl;
|
|
170
|
+
class SdkLoader {
|
|
171
|
+
static load(sdkUrl) {
|
|
191
172
|
if (typeof window === "undefined" || typeof document === "undefined") {
|
|
192
173
|
return Promise.resolve(null);
|
|
193
174
|
}
|
|
175
|
+
const isPreviousCallWithoutUrl = __classPrivateFieldGet(this, _a, "f", _SdkLoader_previousAttemptUrl) === __classPrivateFieldGet(this, _a, "f", _SdkLoader_CloudfrontSrc);
|
|
176
|
+
if (sdkUrl && isPreviousCallWithoutUrl) {
|
|
177
|
+
console.error(`SDK Initialization Error: A URL was provided for SDK initialization after a previous attempt without one.
|
|
178
|
+
The SDK will proceed using the initial configuration without a URL.`);
|
|
179
|
+
}
|
|
194
180
|
if (window.PaymentFormSdk) {
|
|
195
181
|
return Promise.resolve(window.PaymentFormSdk);
|
|
196
182
|
}
|
|
197
183
|
if (__classPrivateFieldGet(this, _a, "f", _SdkLoader_loadAttempt)) {
|
|
198
184
|
return __classPrivateFieldGet(this, _a, "f", _SdkLoader_loadAttempt);
|
|
199
185
|
}
|
|
186
|
+
__classPrivateFieldSet(this, _a, sdkUrl || __classPrivateFieldGet(this, _a, "f", _SdkLoader_CloudfrontSrc), "f", _SdkLoader_previousAttemptUrl);
|
|
187
|
+
const script = document.createElement("script");
|
|
188
|
+
script.async = true;
|
|
189
|
+
script.src = sdkUrl || __classPrivateFieldGet(this, _a, "f", _SdkLoader_CloudfrontSrc);
|
|
190
|
+
script.id = "solid-payment-form-source";
|
|
191
|
+
document.head.appendChild(script);
|
|
200
192
|
__classPrivateFieldSet(this, _a, new Promise((resolve, reject) => {
|
|
201
193
|
try {
|
|
202
|
-
const script = document.createElement("script");
|
|
203
|
-
script.async = true;
|
|
204
|
-
script.src = __classPrivateFieldGet(this, _a, "f", _SdkLoader_CloudfrontSrc);
|
|
205
|
-
script.id = "solid-payment-form-source";
|
|
206
194
|
script.onerror = (e) => {
|
|
207
195
|
__classPrivateFieldSet(this, _a, null, "f", _SdkLoader_loadAttempt);
|
|
208
196
|
reject(e);
|
|
@@ -210,7 +198,6 @@ class SdkLoader$1 {
|
|
|
210
198
|
script.onload = () => {
|
|
211
199
|
resolve(window.PaymentFormSdk);
|
|
212
200
|
};
|
|
213
|
-
document.head.appendChild(script);
|
|
214
201
|
} catch (e) {
|
|
215
202
|
reject(e);
|
|
216
203
|
}
|
|
@@ -218,37 +205,10 @@ class SdkLoader$1 {
|
|
|
218
205
|
return __classPrivateFieldGet(this, _a, "f", _SdkLoader_loadAttempt);
|
|
219
206
|
}
|
|
220
207
|
}
|
|
221
|
-
|
|
222
|
-
_a = SdkLoader$1;
|
|
208
|
+
_a = SdkLoader;
|
|
223
209
|
_SdkLoader_CloudfrontSrc = { value: "https://cdn.solidgate.com/js/solid-form.js" };
|
|
224
210
|
_SdkLoader_loadAttempt = { value: null };
|
|
225
|
-
|
|
226
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
227
|
-
};
|
|
228
|
-
Object.defineProperty(dist, "__esModule", { value: true });
|
|
229
|
-
var FormType = dist.FormType = SdkLoader = dist.SdkLoader = CardBrand = dist.CardBrand = FieldName = dist.FieldName = MessageType = dist.MessageType = SecureBrand = dist.SecureBrand = PayableEntity = dist.PayableEntity = FormButtonType = dist.FormButtonType = InteractionType = dist.InteractionType = AdditionalFieldName = dist.AdditionalFieldName = InteractionTargetType = dist.InteractionTargetType = void 0;
|
|
230
|
-
const MessageType_1 = __importDefault(MessageType$2);
|
|
231
|
-
var MessageType = dist.MessageType = MessageType_1.default;
|
|
232
|
-
const FieldName_1 = __importDefault(FieldName$2);
|
|
233
|
-
var FieldName = dist.FieldName = FieldName_1.default;
|
|
234
|
-
const CardBrand_1 = __importDefault(CardBrand$1);
|
|
235
|
-
var CardBrand = dist.CardBrand = CardBrand_1.default;
|
|
236
|
-
const SecureBrand_1 = __importDefault(SecureBrand$2);
|
|
237
|
-
var SecureBrand = dist.SecureBrand = SecureBrand_1.default;
|
|
238
|
-
const FormType_1 = __importDefault(FormType$2);
|
|
239
|
-
FormType = dist.FormType = FormType_1.default;
|
|
240
|
-
const PayableEntity_1 = __importDefault(PayableEntity$2);
|
|
241
|
-
var PayableEntity = dist.PayableEntity = PayableEntity_1.default;
|
|
242
|
-
const InteractionType_1 = __importDefault(InteractionType$2);
|
|
243
|
-
var InteractionType = dist.InteractionType = InteractionType_1.default;
|
|
244
|
-
const InteractionTargetType_1 = __importDefault(InteractionTargetType$2);
|
|
245
|
-
var InteractionTargetType = dist.InteractionTargetType = InteractionTargetType_1.default;
|
|
246
|
-
const AdditionalFieldName_1 = __importDefault(AdditionalFieldName$2);
|
|
247
|
-
var AdditionalFieldName = dist.AdditionalFieldName = AdditionalFieldName_1.default;
|
|
248
|
-
const FormButtonType_1 = __importDefault(FormButtonType$2);
|
|
249
|
-
var FormButtonType = dist.FormButtonType = FormButtonType_1.default;
|
|
250
|
-
const SdkLoader_1 = __importDefault(SdkLoader$2);
|
|
251
|
-
var SdkLoader = dist.SdkLoader = SdkLoader_1.default;
|
|
211
|
+
_SdkLoader_previousAttemptUrl = { value: null };
|
|
252
212
|
const payButtonIds = {
|
|
253
213
|
googlePayButtonParams: {
|
|
254
214
|
title: "GooglePay",
|
|
@@ -365,25 +325,25 @@ const onSubscribe = (sdkInstanceValue, callbacks) => {
|
|
|
365
325
|
onCard = () => {
|
|
366
326
|
}
|
|
367
327
|
} = callbacks;
|
|
368
|
-
sdkInstanceValue.on(MessageType.Mounted, (e) => onMounted2(e.data));
|
|
369
|
-
sdkInstanceValue.on(MessageType.Success, (e) => onSuccess(e.data));
|
|
370
|
-
sdkInstanceValue.on(MessageType.Error, (e) => onError(e.data));
|
|
371
|
-
sdkInstanceValue.on(MessageType.Fail, (e) => onFail(e.data));
|
|
372
|
-
sdkInstanceValue.on(MessageType.Submit, (e) => onSubmit(e.data));
|
|
373
|
-
sdkInstanceValue.on(MessageType.Verify, (e) => onVerify(e.data));
|
|
328
|
+
sdkInstanceValue.on(MessageType$1.Mounted, (e) => onMounted2(e.data));
|
|
329
|
+
sdkInstanceValue.on(MessageType$1.Success, (e) => onSuccess(e.data));
|
|
330
|
+
sdkInstanceValue.on(MessageType$1.Error, (e) => onError(e.data));
|
|
331
|
+
sdkInstanceValue.on(MessageType$1.Fail, (e) => onFail(e.data));
|
|
332
|
+
sdkInstanceValue.on(MessageType$1.Submit, (e) => onSubmit(e.data));
|
|
333
|
+
sdkInstanceValue.on(MessageType$1.Verify, (e) => onVerify(e.data));
|
|
374
334
|
sdkInstanceValue.on(
|
|
375
|
-
MessageType.CustomStylesAppended,
|
|
335
|
+
MessageType$1.CustomStylesAppended,
|
|
376
336
|
(e) => onCustomStylesAppended(e.data)
|
|
377
337
|
);
|
|
378
338
|
sdkInstanceValue.on(
|
|
379
|
-
MessageType.PaymentDetails,
|
|
339
|
+
MessageType$1.PaymentDetails,
|
|
380
340
|
(e) => onPaymentDetails(e.data)
|
|
381
341
|
);
|
|
382
|
-
sdkInstanceValue.on(MessageType.Redirect, (e) => onFormRedirect(e.data));
|
|
383
|
-
sdkInstanceValue.on(MessageType.Interaction, (e) => onInteraction(e.data));
|
|
384
|
-
sdkInstanceValue.on(MessageType.OrderStatus, (e) => onOrderStatus(e.data));
|
|
385
|
-
sdkInstanceValue.on(MessageType.Resize, (e) => onResize(e.data));
|
|
386
|
-
sdkInstanceValue.on(MessageType.Card, (e) => onCard(e.data));
|
|
342
|
+
sdkInstanceValue.on(MessageType$1.Redirect, (e) => onFormRedirect(e.data));
|
|
343
|
+
sdkInstanceValue.on(MessageType$1.Interaction, (e) => onInteraction(e.data));
|
|
344
|
+
sdkInstanceValue.on(MessageType$1.OrderStatus, (e) => onOrderStatus(e.data));
|
|
345
|
+
sdkInstanceValue.on(MessageType$1.Resize, (e) => onResize(e.data));
|
|
346
|
+
sdkInstanceValue.on(MessageType$1.Card, (e) => onCard(e.data));
|
|
387
347
|
};
|
|
388
348
|
const sdkInitType = "vue";
|
|
389
349
|
window.__SOLIDGATE_PRIVATE__SDK_INIT_TYPE = sdkInitType;
|
|
@@ -618,4 +578,4 @@ const _sfc_main = defineComponent({
|
|
|
618
578
|
}
|
|
619
579
|
});
|
|
620
580
|
var Resign = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-77b30339"]]);
|
|
621
|
-
export { AdditionalFieldName, CardBrand, FieldName, FormButtonType, FormType, InteractionTargetType, InteractionType, MessageType, PayableEntity, Resign, SdkLoader, SecureBrand, Payment as default };
|
|
581
|
+
export { AdditionalFieldName$1 as AdditionalFieldName, CardBrand$1 as CardBrand, CardBrandIconStyle$1 as CardBrandIconStyle, FieldName$1 as FieldName, FormButtonType$1 as FormButtonType, FormType$1 as FormType, InteractionTargetType$1 as InteractionTargetType, InteractionType$1 as InteractionType, MessageType$1 as MessageType, PayableEntity$1 as PayableEntity, Resign, SdkLoader, SecureBrand$1 as SecureBrand, Payment as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solidgate/vue-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.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.17.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@babel/types": "^7.24.5",
|