@hmcts/ccpay-web-component 5.0.10-beta13 → 5.0.10-beta15

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.
@@ -6640,7 +6640,11 @@
6640
6640
  RefundStatusComponent.prototype.getRefundListReason = function (refundListReason) {
6641
6641
  if (this.paymentLibComponent.isFromRefundStatusPage && !this.paymentLibComponent.iscancelClicked) {
6642
6642
  if (refundListReason.reason != undefined && refundListReason.reason != null && refundListReason.reason != this.refundlist.reason) {
6643
+ console.log('refund reason: ' + refundListReason.reason);
6644
+ console.log('refund code: ' + refundListReason.code);
6643
6645
  this.refundlist.reason = refundListReason.reason;
6646
+ this.refundlist.reason_code = refundListReason.code.split('-')[0].trim();
6647
+ console.log('refund reason code: ' + this.refundlist.reason_code);
6644
6648
  this.refundlist.code = refundListReason.code;
6645
6649
  this.refundCode = refundListReason.code;
6646
6650
  }