@hmcts/ccpay-web-component 4.0.1-beta24 → 4.0.1-beta25
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/bundles/hmcts-ccpay-web-component.umd.js +27 -22
- package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
- package/esm2015/lib/components/pba-payment/pba-payment.component.js +31 -26
- package/esm5/lib/components/pba-payment/pba-payment.component.js +31 -26
- package/fesm2015/hmcts-ccpay-web-component.js +30 -25
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +30 -25
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/package.json +1 -1
|
@@ -8557,29 +8557,34 @@
|
|
|
8557
8557
|
this.isPBAAccountNotExist = false;
|
|
8558
8558
|
this.isPBAServerError = false;
|
|
8559
8559
|
this.isPBAAccountPaymentSuccess = false;
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
|
|
8563
|
-
.
|
|
8564
|
-
|
|
8565
|
-
|
|
8566
|
-
*/function (r) {
|
|
8567
|
-
_this.pbaAccountrPaymentResult = JSON.parse(r).data;
|
|
8568
|
-
_this.isPBAAccountPaymentSuccess = true;
|
|
8569
|
-
}), ( /**
|
|
8570
|
-
* @param {?} e
|
|
8560
|
+
if (this.pbaAccountList.indexOf(this.selectedPbaAccount) !== -1) {
|
|
8561
|
+
/** @type {?} */
|
|
8562
|
+
var requestBody = new IserviceRequestPbaPayment(this.selectedPbaAccount, this.pbaPayOrderRef.orderTotalFees, this.pbaAccountRef);
|
|
8563
|
+
this.paymentViewService.postPBAaccountPayment(this.pbaPayOrderRef.orderRefId, requestBody)
|
|
8564
|
+
.subscribe(( /**
|
|
8565
|
+
* @param {?} r
|
|
8571
8566
|
* @return {?}
|
|
8572
|
-
*/function (
|
|
8573
|
-
|
|
8574
|
-
_this.
|
|
8575
|
-
}
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
|
|
8580
|
-
|
|
8581
|
-
|
|
8582
|
-
|
|
8567
|
+
*/function (r) {
|
|
8568
|
+
_this.pbaAccountrPaymentResult = JSON.parse(r).data;
|
|
8569
|
+
_this.isPBAAccountPaymentSuccess = true;
|
|
8570
|
+
}), ( /**
|
|
8571
|
+
* @param {?} e
|
|
8572
|
+
* @return {?}
|
|
8573
|
+
*/function (e) {
|
|
8574
|
+
if (e.status == '402') {
|
|
8575
|
+
_this.isInSufficiantFund = true;
|
|
8576
|
+
}
|
|
8577
|
+
else if (e.status == '410' || e.status == '412') {
|
|
8578
|
+
_this.isPBAAccountNotExist = true;
|
|
8579
|
+
}
|
|
8580
|
+
else {
|
|
8581
|
+
_this.isPBAServerError = true;
|
|
8582
|
+
}
|
|
8583
|
+
}));
|
|
8584
|
+
}
|
|
8585
|
+
else {
|
|
8586
|
+
this.isPBAServerError = true;
|
|
8587
|
+
}
|
|
8583
8588
|
};
|
|
8584
8589
|
/**
|
|
8585
8590
|
* @return {?}
|