@xsolla/payment-client-core 0.2.18 → 0.2.19
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/esm2020/lib/core/payment/actions/show-fields/show-fields.action.class.mjs +4 -2
- package/esm2020/lib/core/payment/form-messages/form-messages.service.mjs +2 -5
- package/fesm2015/xsolla-payment-client-core.mjs +5 -5
- package/fesm2015/xsolla-payment-client-core.mjs.map +1 -1
- package/fesm2020/xsolla-payment-client-core.mjs +4 -5
- package/fesm2020/xsolla-payment-client-core.mjs.map +1 -1
- package/package.json +1 -1
- package/xsolla-payment-client-core-0.2.19.tgz +0 -0
- package/xsolla-payment-client-core-0.2.18.tgz +0 -0
|
@@ -1371,7 +1371,9 @@ class ShowFieldsActionCreator {
|
|
|
1371
1371
|
}
|
|
1372
1372
|
isSuitable(response) {
|
|
1373
1373
|
return (response.currentCommand === XpsCommand.check ||
|
|
1374
|
-
response.currentCommand === XpsCommand.form
|
|
1374
|
+
response.currentCommand === XpsCommand.form ||
|
|
1375
|
+
(response.currentCommand === XpsCommand.checkout &&
|
|
1376
|
+
!response.parameters.checkout));
|
|
1375
1377
|
}
|
|
1376
1378
|
}
|
|
1377
1379
|
ShowFieldsActionCreator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: ShowFieldsActionCreator, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -6284,11 +6286,8 @@ class FormMessagesService extends EmitDataService {
|
|
|
6284
6286
|
this.unescapeHtmlPipe = unescapeHtmlPipe;
|
|
6285
6287
|
}
|
|
6286
6288
|
emitOnResponse(messages) {
|
|
6287
|
-
if (!messages) {
|
|
6288
|
-
return;
|
|
6289
|
-
}
|
|
6290
6289
|
const mapInfoMessages = (infoMessage) => this.unescapeHtmlPipe.transform(infoMessage.message);
|
|
6291
|
-
super.emit(messages
|
|
6290
|
+
super.emit(messages?.map(mapInfoMessages) ?? []);
|
|
6292
6291
|
}
|
|
6293
6292
|
}
|
|
6294
6293
|
FormMessagesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: FormMessagesService, deps: [{ token: UnescapeHtmlPipe }], target: i0.ɵɵFactoryTarget.Injectable });
|