@hmcts/ccpay-web-component 5.2.7-beta05 → 5.2.8-beta02

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.
@@ -6861,7 +6861,7 @@
6861
6861
  ServiceRequestComponent.prototype.ngOnInit = function () {
6862
6862
  var _this = this;
6863
6863
  this.isTurnOff = this.paymentLibComponent.ISTURNOFF;
6864
- this.isServiceRequest = 'false';
6864
+ this.isServiceRequest = 'true';
6865
6865
  if (this.viewStatus === undefined) {
6866
6866
  this.viewStatus = this.paymentLibComponent.viewName;
6867
6867
  }
@@ -7240,36 +7240,30 @@
7240
7240
  this.isPBAAccountPaymentSuccess = false;
7241
7241
  this.isContinueButtondisabled = true;
7242
7242
  if (this.pbaAccountList.indexOf(this.selectedPbaAccount) !== -1) {
7243
- var requestBody_1 = new IserviceRequestPbaPayment(this.selectedPbaAccount, this.pbaPayOrderRef.orderTotalFees, this.pbaAccountRef, this.orgName);
7244
- console.log('antes!');
7245
- setTimeout(function () {
7246
- console.log('primero!');
7247
- _this.paymentViewService.postPBAaccountPayment(_this.pbaPayOrderRef.orderRefId, requestBody_1)
7248
- .subscribe(function (r) {
7249
- try {
7250
- _this.pbaAccountrPaymentResult = JSON.parse(r);
7251
- }
7252
- catch (e) {
7253
- _this.pbaAccountrPaymentResult = r;
7254
- }
7255
- _this.isPBAAccountPaymentSuccess = true;
7256
- }, function (e) {
7257
- if (e.status == '402') {
7258
- _this.isInSufficiantFund = true;
7259
- }
7260
- else if (e.status == '410') {
7261
- _this.isPBAAccountNotExist = true;
7262
- }
7263
- else if (e.status == '412') {
7264
- _this.isPBAAccountHold = true;
7265
- }
7266
- else {
7267
- _this.isPBAServerError = true;
7268
- }
7269
- });
7270
- console.log('despues!');
7271
- }, 5000);
7272
- console.log('No te espero!');
7243
+ var requestBody = new IserviceRequestPbaPayment(this.selectedPbaAccount, this.pbaPayOrderRef.orderTotalFees, this.pbaAccountRef, this.orgName);
7244
+ this.paymentViewService.postPBAaccountPayment(this.pbaPayOrderRef.orderRefId, requestBody)
7245
+ .subscribe(function (r) {
7246
+ try {
7247
+ _this.pbaAccountrPaymentResult = JSON.parse(r);
7248
+ }
7249
+ catch (e) {
7250
+ _this.pbaAccountrPaymentResult = r;
7251
+ }
7252
+ _this.isPBAAccountPaymentSuccess = true;
7253
+ }, function (e) {
7254
+ if (e.status == '402') {
7255
+ _this.isInSufficiantFund = true;
7256
+ }
7257
+ else if (e.status == '410') {
7258
+ _this.isPBAAccountNotExist = true;
7259
+ }
7260
+ else if (e.status == '412') {
7261
+ _this.isPBAAccountHold = true;
7262
+ }
7263
+ else {
7264
+ _this.isPBAServerError = true;
7265
+ }
7266
+ });
7273
7267
  }
7274
7268
  else {
7275
7269
  this.isPBAServerError = true;