@xsolla/payment-client-core 0.1.14-test6 → 0.1.14-test8
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/payment.service.mjs +3 -1
- package/esm2020/lib/core/payment/status/save-payment-method-status/save-payment-method-status.service.mjs +5 -1
- package/fesm2015/xsolla-payment-client-core.mjs +6 -0
- package/fesm2015/xsolla-payment-client-core.mjs.map +1 -1
- package/fesm2020/xsolla-payment-client-core.mjs +6 -0
- package/fesm2020/xsolla-payment-client-core.mjs.map +1 -1
- package/package.json +1 -1
- package/xsolla-payment-client-core-0.1.14-test8.tgz +0 -0
- package/xsolla-payment-client-core-0.1.14-test6.tgz +0 -0
|
@@ -4670,6 +4670,10 @@ class SavePaymentMethodStatusService {
|
|
|
4670
4670
|
handleSavingStatus(status, account) {
|
|
4671
4671
|
this.listenStatusService.stopListening();
|
|
4672
4672
|
this.listenStatusSubscription.unsubscribe();
|
|
4673
|
+
const updatingIsProcessing = status?.titleClass !== TitleClass.cancel && status?.titleClass !== TitleClass.cancelUser && !account;
|
|
4674
|
+
if (updatingIsProcessing) {
|
|
4675
|
+
return;
|
|
4676
|
+
}
|
|
4673
4677
|
const paymentAccountWasSaved = status?.titleClass === TitleClass.done && account !== null;
|
|
4674
4678
|
const isSavePaymentMethod = true;
|
|
4675
4679
|
this.savePaymentMethodStatus = paymentAccountWasSaved ? SavePaymentMethodStatus.success : SavePaymentMethodStatus.failed;
|
|
@@ -5297,6 +5301,8 @@ class PaymentService {
|
|
|
5297
5301
|
'en',
|
|
5298
5302
|
isSavePaymentAccount: this.data.isSavingMethodMode ? 1 : 0,
|
|
5299
5303
|
};
|
|
5304
|
+
console.log('this.data', this.data);
|
|
5305
|
+
console.log('getStatus', params);
|
|
5300
5306
|
return this.statusService.getStatus(params);
|
|
5301
5307
|
}
|
|
5302
5308
|
getFieldConfig(field) {
|