@solidgate/vue-sdk 1.16.0 → 1.17.1
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 +6 -6
- package/dist/Resign.vue.d.ts +2 -2
- package/dist/index.es.js +90 -142
- package/package.json +2 -2
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,7 +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/enums/CardBrandIconStyle").default;
|
|
18
|
+
cardBrandIconStyle: import("@solidgate/client-sdk-loader/dist/esm/enums/CardBrandIconStyle").default;
|
|
19
19
|
}> | undefined;
|
|
20
20
|
styles?: Record<string, unknown> | undefined;
|
|
21
21
|
onReadyResignInstance?: ((resignInstance: ClientSdkInstance) => void) | undefined;
|
|
@@ -74,7 +74,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
74
74
|
resignCvvLabel: string;
|
|
75
75
|
resignCvvPlaceholder: string;
|
|
76
76
|
hideCvvNumbers: boolean;
|
|
77
|
-
cardBrandIconStyle: import("@solidgate/client-sdk-loader/dist/enums/CardBrandIconStyle").default;
|
|
77
|
+
cardBrandIconStyle: import("@solidgate/client-sdk-loader/dist/esm/enums/CardBrandIconStyle").default;
|
|
78
78
|
}> | undefined;
|
|
79
79
|
styles?: Record<string, unknown> | undefined;
|
|
80
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,54 +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
|
-
CardBrand3["Paypal"] = "paypal";
|
|
67
|
-
})(CardBrand2 = exports.CardBrand || (exports.CardBrand = {}));
|
|
68
|
-
exports.default = CardBrand2;
|
|
69
|
-
})(CardBrand$1);
|
|
70
|
-
var SecureBrand$2 = {};
|
|
71
|
-
Object.defineProperty(SecureBrand$2, "__esModule", { value: true });
|
|
72
|
-
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;
|
|
73
60
|
(function(SecureBrand2) {
|
|
74
61
|
SecureBrand2["VisaSecure"] = "visa-secure";
|
|
75
62
|
SecureBrand2["MccIdCheck"] = "mcc-id-check";
|
|
@@ -77,50 +64,40 @@ var SecureBrand$1;
|
|
|
77
64
|
SecureBrand2["PCIDss"] = "pci-dss";
|
|
78
65
|
SecureBrand2["Norton"] = "norton";
|
|
79
66
|
SecureBrand2["McAffee"] = "mc-affee";
|
|
80
|
-
})(SecureBrand
|
|
81
|
-
SecureBrand$
|
|
82
|
-
var FormType
|
|
83
|
-
Object.defineProperty(FormType$2, "__esModule", { value: true });
|
|
84
|
-
var FormType$1;
|
|
67
|
+
})(SecureBrand || (SecureBrand = {}));
|
|
68
|
+
var SecureBrand$1 = SecureBrand;
|
|
69
|
+
var FormType;
|
|
85
70
|
(function(FormType2) {
|
|
86
71
|
FormType2["Default"] = "default";
|
|
87
72
|
FormType2["Card"] = "card";
|
|
88
73
|
FormType2["Inline"] = "inline";
|
|
89
74
|
FormType2["Flat"] = "flat";
|
|
90
|
-
})(FormType
|
|
91
|
-
FormType$
|
|
92
|
-
var PayableEntity
|
|
93
|
-
Object.defineProperty(PayableEntity$2, "__esModule", { value: true });
|
|
94
|
-
var PayableEntity$1;
|
|
75
|
+
})(FormType || (FormType = {}));
|
|
76
|
+
var FormType$1 = FormType;
|
|
77
|
+
var PayableEntity;
|
|
95
78
|
(function(PayableEntity2) {
|
|
96
79
|
PayableEntity2["ApplePay"] = "applebtn";
|
|
97
80
|
PayableEntity2["GooglePay"] = "googlebtn";
|
|
98
81
|
PayableEntity2["Form"] = "form";
|
|
99
82
|
PayableEntity2["Resign"] = "resign";
|
|
100
83
|
PayableEntity2["Paypal"] = "paypal";
|
|
101
|
-
})(PayableEntity
|
|
102
|
-
PayableEntity$
|
|
103
|
-
var InteractionType
|
|
104
|
-
Object.defineProperty(InteractionType$2, "__esModule", { value: true });
|
|
105
|
-
var InteractionType$1;
|
|
84
|
+
})(PayableEntity || (PayableEntity = {}));
|
|
85
|
+
var PayableEntity$1 = PayableEntity;
|
|
86
|
+
var InteractionType;
|
|
106
87
|
(function(InteractionType2) {
|
|
107
88
|
InteractionType2["Click"] = "click";
|
|
108
89
|
InteractionType2["Focus"] = "focus";
|
|
109
90
|
InteractionType2["Blur"] = "blur";
|
|
110
91
|
InteractionType2["Change"] = "change";
|
|
111
|
-
})(InteractionType
|
|
112
|
-
InteractionType$
|
|
113
|
-
var InteractionTargetType
|
|
114
|
-
Object.defineProperty(InteractionTargetType$2, "__esModule", { value: true });
|
|
115
|
-
var InteractionTargetType$1;
|
|
92
|
+
})(InteractionType || (InteractionType = {}));
|
|
93
|
+
var InteractionType$1 = InteractionType;
|
|
94
|
+
var InteractionTargetType;
|
|
116
95
|
(function(InteractionTargetType2) {
|
|
117
96
|
InteractionTargetType2["Input"] = "input";
|
|
118
97
|
InteractionTargetType2["Button"] = "button";
|
|
119
|
-
})(InteractionTargetType
|
|
120
|
-
InteractionTargetType$
|
|
121
|
-
var AdditionalFieldName
|
|
122
|
-
Object.defineProperty(AdditionalFieldName$2, "__esModule", { value: true });
|
|
123
|
-
var AdditionalFieldName$1;
|
|
98
|
+
})(InteractionTargetType || (InteractionTargetType = {}));
|
|
99
|
+
var InteractionTargetType$1 = InteractionTargetType;
|
|
100
|
+
var AdditionalFieldName;
|
|
124
101
|
(function(AdditionalFieldName2) {
|
|
125
102
|
AdditionalFieldName2["ZipCode"] = "zip\u0421ode";
|
|
126
103
|
AdditionalFieldName2["ArgentinaDni"] = "argentinaDni";
|
|
@@ -158,34 +135,29 @@ var AdditionalFieldName$1;
|
|
|
158
135
|
AdditionalFieldName2["UgandaNic"] = "ugandaNic";
|
|
159
136
|
AdditionalFieldName2["UriguayCi"] = "uriguayCi";
|
|
160
137
|
AdditionalFieldName2["VietnamVnid"] = "vietnamVnid";
|
|
161
|
-
})(AdditionalFieldName
|
|
162
|
-
AdditionalFieldName$
|
|
163
|
-
var FormButtonType
|
|
164
|
-
Object.defineProperty(FormButtonType$2, "__esModule", { value: true });
|
|
165
|
-
var FormButtonType$1;
|
|
138
|
+
})(AdditionalFieldName || (AdditionalFieldName = {}));
|
|
139
|
+
var AdditionalFieldName$1 = AdditionalFieldName;
|
|
140
|
+
var FormButtonType;
|
|
166
141
|
(function(FormButtonType2) {
|
|
167
142
|
FormButtonType2["Default"] = "default";
|
|
168
143
|
FormButtonType2["Continue"] = "continue";
|
|
169
|
-
})(FormButtonType
|
|
170
|
-
FormButtonType$
|
|
171
|
-
var CardBrandIconStyle
|
|
172
|
-
Object.defineProperty(CardBrandIconStyle$2, "__esModule", { value: true });
|
|
173
|
-
var CardBrandIconStyle$1;
|
|
144
|
+
})(FormButtonType || (FormButtonType = {}));
|
|
145
|
+
var FormButtonType$1 = FormButtonType;
|
|
146
|
+
var CardBrandIconStyle;
|
|
174
147
|
(function(CardBrandIconStyle2) {
|
|
175
148
|
CardBrandIconStyle2["MonochromeLight"] = "monochrome-light";
|
|
176
149
|
CardBrandIconStyle2["MonochromeDark"] = "monochrome-dark";
|
|
177
150
|
CardBrandIconStyle2["Colored"] = "colored";
|
|
178
|
-
})(CardBrandIconStyle
|
|
179
|
-
CardBrandIconStyle$
|
|
180
|
-
var
|
|
181
|
-
var __classPrivateFieldGet = commonjsGlobal && commonjsGlobal.__classPrivateFieldGet || function(receiver, state, kind, f) {
|
|
151
|
+
})(CardBrandIconStyle || (CardBrandIconStyle = {}));
|
|
152
|
+
var CardBrandIconStyle$1 = CardBrandIconStyle;
|
|
153
|
+
var __classPrivateFieldGet = globalThis && globalThis.__classPrivateFieldGet || function(receiver, state, kind, f) {
|
|
182
154
|
if (kind === "a" && !f)
|
|
183
155
|
throw new TypeError("Private accessor was defined without a getter");
|
|
184
156
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
185
157
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
186
158
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
187
159
|
};
|
|
188
|
-
var __classPrivateFieldSet =
|
|
160
|
+
var __classPrivateFieldSet = globalThis && globalThis.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
|
189
161
|
if (kind === "m")
|
|
190
162
|
throw new TypeError("Private method is not writable");
|
|
191
163
|
if (kind === "a" && !f)
|
|
@@ -194,25 +166,31 @@ var __classPrivateFieldSet = commonjsGlobal && commonjsGlobal.__classPrivateFiel
|
|
|
194
166
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
195
167
|
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
196
168
|
};
|
|
197
|
-
var _a, _SdkLoader_CloudfrontSrc, _SdkLoader_loadAttempt;
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
static load() {
|
|
169
|
+
var _a, _SdkLoader_CloudfrontSrc, _SdkLoader_loadAttempt, _SdkLoader_previousAttemptUrl;
|
|
170
|
+
class SdkLoader {
|
|
171
|
+
static load(sdkUrl) {
|
|
201
172
|
if (typeof window === "undefined" || typeof document === "undefined") {
|
|
202
173
|
return Promise.resolve(null);
|
|
203
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
|
+
}
|
|
204
180
|
if (window.PaymentFormSdk) {
|
|
205
181
|
return Promise.resolve(window.PaymentFormSdk);
|
|
206
182
|
}
|
|
207
183
|
if (__classPrivateFieldGet(this, _a, "f", _SdkLoader_loadAttempt)) {
|
|
208
184
|
return __classPrivateFieldGet(this, _a, "f", _SdkLoader_loadAttempt);
|
|
209
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);
|
|
210
192
|
__classPrivateFieldSet(this, _a, new Promise((resolve, reject) => {
|
|
211
193
|
try {
|
|
212
|
-
const script = document.createElement("script");
|
|
213
|
-
script.async = true;
|
|
214
|
-
script.src = __classPrivateFieldGet(this, _a, "f", _SdkLoader_CloudfrontSrc);
|
|
215
|
-
script.id = "solid-payment-form-source";
|
|
216
194
|
script.onerror = (e) => {
|
|
217
195
|
__classPrivateFieldSet(this, _a, null, "f", _SdkLoader_loadAttempt);
|
|
218
196
|
reject(e);
|
|
@@ -220,7 +198,6 @@ class SdkLoader$1 {
|
|
|
220
198
|
script.onload = () => {
|
|
221
199
|
resolve(window.PaymentFormSdk);
|
|
222
200
|
};
|
|
223
|
-
document.head.appendChild(script);
|
|
224
201
|
} catch (e) {
|
|
225
202
|
reject(e);
|
|
226
203
|
}
|
|
@@ -228,39 +205,10 @@ class SdkLoader$1 {
|
|
|
228
205
|
return __classPrivateFieldGet(this, _a, "f", _SdkLoader_loadAttempt);
|
|
229
206
|
}
|
|
230
207
|
}
|
|
231
|
-
|
|
232
|
-
_a = SdkLoader$1;
|
|
208
|
+
_a = SdkLoader;
|
|
233
209
|
_SdkLoader_CloudfrontSrc = { value: "https://cdn.solidgate.com/js/solid-form.js" };
|
|
234
210
|
_SdkLoader_loadAttempt = { value: null };
|
|
235
|
-
|
|
236
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
237
|
-
};
|
|
238
|
-
Object.defineProperty(dist, "__esModule", { value: true });
|
|
239
|
-
var FormType = dist.FormType = SdkLoader = dist.SdkLoader = CardBrand = dist.CardBrand = FieldName = dist.FieldName = MessageType = dist.MessageType = CardBrandIconStyle = dist.CardBrandIconStyle = SecureBrand = dist.SecureBrand = PayableEntity = dist.PayableEntity = FormButtonType = dist.FormButtonType = InteractionType = dist.InteractionType = AdditionalFieldName = dist.AdditionalFieldName = InteractionTargetType = dist.InteractionTargetType = void 0;
|
|
240
|
-
const MessageType_1 = __importDefault(MessageType$2);
|
|
241
|
-
var MessageType = dist.MessageType = MessageType_1.default;
|
|
242
|
-
const FieldName_1 = __importDefault(FieldName$2);
|
|
243
|
-
var FieldName = dist.FieldName = FieldName_1.default;
|
|
244
|
-
const CardBrand_1 = __importDefault(CardBrand$1);
|
|
245
|
-
var CardBrand = dist.CardBrand = CardBrand_1.default;
|
|
246
|
-
const SecureBrand_1 = __importDefault(SecureBrand$2);
|
|
247
|
-
var SecureBrand = dist.SecureBrand = SecureBrand_1.default;
|
|
248
|
-
const FormType_1 = __importDefault(FormType$2);
|
|
249
|
-
FormType = dist.FormType = FormType_1.default;
|
|
250
|
-
const PayableEntity_1 = __importDefault(PayableEntity$2);
|
|
251
|
-
var PayableEntity = dist.PayableEntity = PayableEntity_1.default;
|
|
252
|
-
const InteractionType_1 = __importDefault(InteractionType$2);
|
|
253
|
-
var InteractionType = dist.InteractionType = InteractionType_1.default;
|
|
254
|
-
const InteractionTargetType_1 = __importDefault(InteractionTargetType$2);
|
|
255
|
-
var InteractionTargetType = dist.InteractionTargetType = InteractionTargetType_1.default;
|
|
256
|
-
const AdditionalFieldName_1 = __importDefault(AdditionalFieldName$2);
|
|
257
|
-
var AdditionalFieldName = dist.AdditionalFieldName = AdditionalFieldName_1.default;
|
|
258
|
-
const FormButtonType_1 = __importDefault(FormButtonType$2);
|
|
259
|
-
var FormButtonType = dist.FormButtonType = FormButtonType_1.default;
|
|
260
|
-
const CardBrandIconStyle_1 = __importDefault(CardBrandIconStyle$2);
|
|
261
|
-
var CardBrandIconStyle = dist.CardBrandIconStyle = CardBrandIconStyle_1.default;
|
|
262
|
-
const SdkLoader_1 = __importDefault(SdkLoader$2);
|
|
263
|
-
var SdkLoader = dist.SdkLoader = SdkLoader_1.default;
|
|
211
|
+
_SdkLoader_previousAttemptUrl = { value: null };
|
|
264
212
|
const payButtonIds = {
|
|
265
213
|
googlePayButtonParams: {
|
|
266
214
|
title: "GooglePay",
|
|
@@ -377,25 +325,25 @@ const onSubscribe = (sdkInstanceValue, callbacks) => {
|
|
|
377
325
|
onCard = () => {
|
|
378
326
|
}
|
|
379
327
|
} = callbacks;
|
|
380
|
-
sdkInstanceValue.on(MessageType.Mounted, (e) => onMounted2(e.data));
|
|
381
|
-
sdkInstanceValue.on(MessageType.Success, (e) => onSuccess(e.data));
|
|
382
|
-
sdkInstanceValue.on(MessageType.Error, (e) => onError(e.data));
|
|
383
|
-
sdkInstanceValue.on(MessageType.Fail, (e) => onFail(e.data));
|
|
384
|
-
sdkInstanceValue.on(MessageType.Submit, (e) => onSubmit(e.data));
|
|
385
|
-
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));
|
|
386
334
|
sdkInstanceValue.on(
|
|
387
|
-
MessageType.CustomStylesAppended,
|
|
335
|
+
MessageType$1.CustomStylesAppended,
|
|
388
336
|
(e) => onCustomStylesAppended(e.data)
|
|
389
337
|
);
|
|
390
338
|
sdkInstanceValue.on(
|
|
391
|
-
MessageType.PaymentDetails,
|
|
339
|
+
MessageType$1.PaymentDetails,
|
|
392
340
|
(e) => onPaymentDetails(e.data)
|
|
393
341
|
);
|
|
394
|
-
sdkInstanceValue.on(MessageType.Redirect, (e) => onFormRedirect(e.data));
|
|
395
|
-
sdkInstanceValue.on(MessageType.Interaction, (e) => onInteraction(e.data));
|
|
396
|
-
sdkInstanceValue.on(MessageType.OrderStatus, (e) => onOrderStatus(e.data));
|
|
397
|
-
sdkInstanceValue.on(MessageType.Resize, (e) => onResize(e.data));
|
|
398
|
-
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));
|
|
399
347
|
};
|
|
400
348
|
const sdkInitType = "vue";
|
|
401
349
|
window.__SOLIDGATE_PRIVATE__SDK_INIT_TYPE = sdkInitType;
|
|
@@ -630,4 +578,4 @@ const _sfc_main = defineComponent({
|
|
|
630
578
|
}
|
|
631
579
|
});
|
|
632
580
|
var Resign = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-77b30339"]]);
|
|
633
|
-
export { AdditionalFieldName, CardBrand, CardBrandIconStyle, 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.1",
|
|
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.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@babel/types": "^7.24.5",
|