@hmcts/ccpay-web-component 5.0.2-beta112 → 5.0.2-beta113

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.
@@ -4856,16 +4856,21 @@
4856
4856
  * @return {?}
4857
4857
  */
4858
4858
  function (payment) {
4859
- if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
4860
- payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
4861
- this.isIssueRefunfBtnEnable = true;
4862
- }
4863
- if (this.isIssueRefunfBtnEnable) {
4864
- return true;
4859
+ if (payment !== null && payment !== undefined) {
4860
+ return payment.issue_refund && payment.refund_enable;
4865
4861
  }
4866
4862
  else {
4867
4863
  return false;
4868
4864
  }
4865
+ // if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
4866
+ // payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
4867
+ // this.isIssueRefunfBtnEnable = true;
4868
+ // }
4869
+ // if (this.isIssueRefunfBtnEnable) {
4870
+ // return true;
4871
+ // } else {
4872
+ // return false;
4873
+ // };
4869
4874
  };
4870
4875
  /**
4871
4876
  * @return {?}