@hmcts/ccpay-web-component 5.0.1-beta41 → 5.0.1-beta45

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.
@@ -2021,8 +2021,9 @@
2021
2021
  * @return {?}
2022
2022
  */
2023
2023
  function () {
2024
- if (!this.paymentLibComponent.TAKEPAYMENT) {
2025
- window.location.href = '/refund-list?takePayment=false&refundlist=true';
2024
+ if (typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') {
2025
+ //window.location.href='/refund-list?takePayment=false&refundlist=true';
2026
+ this.paymentLibComponent.viewName = 'refund-list';
2026
2027
  }
2027
2028
  else {
2028
2029
  this.OrderslistService.setnavigationPage('casetransactions');
@@ -2040,8 +2041,9 @@
2040
2041
  * @return {?}
2041
2042
  */
2042
2043
  function () {
2043
- if (!this.paymentLibComponent.TAKEPAYMENT) {
2044
- window.location.href = '/refund-list?takePayment=false&refundlist=true';
2044
+ if ((typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') || (typeof this.paymentLibComponent.TAKEPAYMENT === 'boolean' && !this.paymentLibComponent.TAKEPAYMENT)) {
2045
+ // window.location.href='/refund-list?takePayment=false&refundlist=true';
2046
+ this.paymentLibComponent.viewName = 'refund-list';
2045
2047
  }
2046
2048
  else {
2047
2049
  this.loadRefundListPage();
@@ -8675,6 +8677,7 @@
8675
8677
  * @return {?}
8676
8678
  */function (payment) {
8677
8679
  if (payment.method.toLocaleLowerCase() === 'payment by account' && _this.allowFurtherAccessAfter4Days(payment)) {
8680
+ _this.paymentLibComponent.paymentReference = payment.reference;
8678
8681
  _this.isPBA = true;
8679
8682
  }
8680
8683
  }));
@@ -8701,7 +8704,8 @@
8701
8704
  if (this.chkForAddRemission(fee.code)) {
8702
8705
  this.feeId = fee;
8703
8706
  this.viewStatus = 'addremission';
8704
- this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe(( /**
8707
+ this.payment = this.orderDetail[0].payments[0];
8708
+ this.paymentViewService.getApportionPaymentDetails(this.orderDetail[0].payments[0].reference).subscribe(( /**
8705
8709
  * @param {?} paymentGroup
8706
8710
  * @return {?}
8707
8711
  */function (paymentGroup) {