@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.
@@ -8557,29 +8557,34 @@
8557
8557
  this.isPBAAccountNotExist = false;
8558
8558
  this.isPBAServerError = false;
8559
8559
  this.isPBAAccountPaymentSuccess = false;
8560
- /** @type {?} */
8561
- var requestBody = new IserviceRequestPbaPayment(this.selectedPbaAccount, this.pbaPayOrderRef.orderTotalFees, this.pbaAccountRef);
8562
- this.paymentViewService.postPBAaccountPayment(this.pbaPayOrderRef.orderRefId, requestBody)
8563
- .subscribe(( /**
8564
- * @param {?} r
8565
- * @return {?}
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 (e) {
8573
- if (e.status == '402') {
8574
- _this.isInSufficiantFund = true;
8575
- }
8576
- else if (e.status == '410' || e.status == '412') {
8577
- _this.isPBAAccountNotExist = true;
8578
- }
8579
- else {
8580
- _this.isPBAServerError = true;
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 {?}