@hmcts/ccpay-web-component 5.2.7-beta03 → 5.2.7-beta04

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.
@@ -931,9 +931,6 @@
931
931
  var randomKey = 'idam-key-' + Math.random().toString().split('.').join('-');
932
932
  body['idempotency_key'] = randomKey;
933
933
  var url = this.paymentLibService.API_ROOT + "/service-request/" + serviceRef + "/pba-payments";
934
- setTimeout(function () {
935
- console.log('Good Night!');
936
- }, 4000);
937
934
  return this.https.post(url, body);
938
935
  };
939
936
  PaymentViewService.prototype.postBSPayments = function (body) {
@@ -7243,30 +7240,36 @@
7243
7240
  this.isPBAAccountPaymentSuccess = false;
7244
7241
  this.isContinueButtondisabled = true;
7245
7242
  if (this.pbaAccountList.indexOf(this.selectedPbaAccount) !== -1) {
7246
- var requestBody = new IserviceRequestPbaPayment(this.selectedPbaAccount, this.pbaPayOrderRef.orderTotalFees, this.pbaAccountRef, this.orgName);
7247
- this.paymentViewService.postPBAaccountPayment(this.pbaPayOrderRef.orderRefId, requestBody)
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
- });
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!');
7270
7273
  }
7271
7274
  else {
7272
7275
  this.isPBAServerError = true;