@hmcts/ccpay-web-component 5.0.1-beta161 → 5.0.1-beta162

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.
@@ -3753,9 +3753,14 @@
3753
3753
  }
3754
3754
  this.excReference = this.paymentLibComponent.EXC_REFERENCE;
3755
3755
  this.takePayment = this.paymentLibComponent.TAKEPAYMENT;
3756
- this.servicerequest = this.paymentLibComponent.SERVICEREQUEST.toString();
3757
- if (this.paymentLibComponent.SERVICEREQUEST.toString() === 'true') {
3758
- this.serviceRequestValue = 'true';
3756
+ if (this.paymentLibComponent.SERVICEREQUEST !== undefined) {
3757
+ this.servicerequest = this.paymentLibComponent.SERVICEREQUEST.toString();
3758
+ if (this.paymentLibComponent.SERVICEREQUEST.toString() === 'true') {
3759
+ this.serviceRequestValue = 'true';
3760
+ }
3761
+ else {
3762
+ this.serviceRequestValue = 'false';
3763
+ }
3759
3764
  }
3760
3765
  else {
3761
3766
  this.serviceRequestValue = 'false';