@hmcts/ccpay-web-component 5.0.4-beta07 → 5.0.4-beta10

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.
@@ -1499,7 +1499,16 @@
1499
1499
  * @param {?} res
1500
1500
  * @return {?}
1501
1501
  */function (res) {
1502
- console.log(res);
1502
+ /** @type {?} */
1503
+ var allPaymentsFailure = [];
1504
+ res.payment_failure_list.forEach(( /**
1505
+ * @param {?} payments
1506
+ * @return {?}
1507
+ */function (payments) {
1508
+ allPaymentsFailure.push(payments.payment_failure_initiated);
1509
+ allPaymentsFailure.push(payments.payment_failure_closed);
1510
+ }));
1511
+ console.log(allPaymentsFailure);
1503
1512
  }));
1504
1513
  };
1505
1514
  Object.defineProperty(PaymentViewComponent.prototype, "isCardPayment", {
@@ -3287,8 +3296,8 @@
3287
3296
  }
3288
3297
  this.excReference = this.paymentLibComponent.EXC_REFERENCE;
3289
3298
  this.takePayment = this.paymentLibComponent.TAKEPAYMENT;
3290
- this.servicerequest = this.paymentLibComponent.SERVICEREQUEST.toString();
3291
- if (this.paymentLibComponent.SERVICEREQUEST.toString() === 'true') {
3299
+ this.servicerequest = this.paymentLibComponent.SERVICEREQUEST;
3300
+ if (this.servicerequest !== undefined && this.servicerequest.toString() === 'true') {
3292
3301
  this.serviceRequestValue = 'true';
3293
3302
  }
3294
3303
  else {