@hmcts/ccpay-web-component 5.2.8-beta06 → 5.2.8

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.
@@ -4252,14 +4252,10 @@
4252
4252
  this.isMarkAsUnidentifiedbtnEnabled = true;
4253
4253
  }
4254
4254
  else if (this.isUnprocessedRecordSelected && !this.isExceptionCase && !this.FEE_RECORDS_EXISTS) {
4255
- //SNI-3692 - WIP
4256
- //} else if ( this.isUnprocessedRecordSelected && !this.isExceptionCase && this.FEE_RECORDS_EXISTS!== null && !this.FEE_RECORDS_EXISTS) {
4257
4255
  this.isAllocateToExistingFeebtnEnabled = false;
4258
4256
  this.isAllocatedToNewFeebtnEnabled = true;
4259
4257
  }
4260
4258
  else if (this.isUnprocessedRecordSelected && !this.isExceptionCase && this.FEE_RECORDS_EXISTS) {
4261
- //SNI-3692 - WIP
4262
- //} else if( this.isUnprocessedRecordSelected && !this.isExceptionCase && (this.FEE_RECORDS_EXISTS === null || this.FEE_RECORDS_EXISTS) ) {
4263
4259
  if (!this.ISTURNOFF) {
4264
4260
  this.isAllocateToExistingFeebtnEnabled = true;
4265
4261
  this.isAllocatedToNewFeebtnEnabled = false;
@@ -7250,30 +7246,32 @@
7250
7246
  this.isPBAAccountPaymentSuccess = false;
7251
7247
  this.isContinueButtondisabled = true;
7252
7248
  if (this.pbaAccountList.indexOf(this.selectedPbaAccount) !== -1) {
7253
- var requestBody = new IserviceRequestPbaPayment(this.selectedPbaAccount, this.pbaPayOrderRef.orderTotalFees, this.pbaAccountRef, this.orgName);
7254
- this.paymentViewService.postPBAaccountPayment(this.pbaPayOrderRef.orderRefId, requestBody)
7255
- .subscribe(function (r) {
7256
- try {
7257
- _this.pbaAccountrPaymentResult = JSON.parse(r);
7258
- }
7259
- catch (e) {
7260
- _this.pbaAccountrPaymentResult = r;
7261
- }
7262
- _this.isPBAAccountPaymentSuccess = true;
7263
- }, function (e) {
7264
- if (e.status == '402') {
7265
- _this.isInSufficiantFund = true;
7266
- }
7267
- else if (e.status == '410') {
7268
- _this.isPBAAccountNotExist = true;
7269
- }
7270
- else if (e.status == '412') {
7271
- _this.isPBAAccountHold = true;
7272
- }
7273
- else {
7274
- _this.isPBAServerError = true;
7275
- }
7276
- });
7249
+ var requestBody_1 = new IserviceRequestPbaPayment(this.selectedPbaAccount, this.pbaPayOrderRef.orderTotalFees, this.pbaAccountRef, this.orgName);
7250
+ setTimeout(function () {
7251
+ _this.paymentViewService.postPBAaccountPayment(_this.pbaPayOrderRef.orderRefId, requestBody_1)
7252
+ .subscribe(function (r) {
7253
+ try {
7254
+ _this.pbaAccountrPaymentResult = JSON.parse(r);
7255
+ }
7256
+ catch (e) {
7257
+ _this.pbaAccountrPaymentResult = r;
7258
+ }
7259
+ _this.isPBAAccountPaymentSuccess = true;
7260
+ }, function (e) {
7261
+ if (e.status == '402') {
7262
+ _this.isInSufficiantFund = true;
7263
+ }
7264
+ else if (e.status == '410') {
7265
+ _this.isPBAAccountNotExist = true;
7266
+ }
7267
+ else if (e.status == '412') {
7268
+ _this.isPBAAccountHold = true;
7269
+ }
7270
+ else {
7271
+ _this.isPBAServerError = true;
7272
+ }
7273
+ });
7274
+ }, 5000);
7277
7275
  }
7278
7276
  else {
7279
7277
  this.isPBAServerError = true;