diff --git a/pkg/handlers/primeapi/payment_request.go b/pkg/handlers/primeapi/payment_request.go index 7a0150e28c9..3d05d751736 100644 --- a/pkg/handlers/primeapi/payment_request.go +++ b/pkg/handlers/primeapi/payment_request.go @@ -127,7 +127,8 @@ func (h CreatePaymentRequestHandler) Handle(params paymentrequestop.CreatePaymen zap.Any("payload", payload)) return paymentrequestop.NewCreatePaymentRequestBadRequest().WithPayload(payload), err default: - if e.Error() == "cannot have payment date earlier than or equal to SIT Entry date" { + if e.Error() == "cannot have payment start date for additional days SIT earlier than or equal to SIT entry date" { + payload := payloads.ClientError(handlers.ConflictErrMessage, err.Error(), h.GetTraceIDFromRequest(params.HTTPRequest)) appCtx.Logger().Error("Payment Request", diff --git a/pkg/services/payment_request/payment_request_creator.go b/pkg/services/payment_request/payment_request_creator.go index 0301e8dd3d6..0b301193287 100644 --- a/pkg/services/payment_request/payment_request_creator.go +++ b/pkg/services/payment_request/payment_request_creator.go @@ -151,7 +151,7 @@ func (p *paymentRequestCreator) CreatePaymentRequest(appCtx appcontext.AppContex } if paymentServiceItem.MTOServiceItem.SITEntryDate != nil && !paymentDate.After(*paymentServiceItem.MTOServiceItem.SITEntryDate) { - return apperror.NewConflictError(paymentRequestArg.ID, "cannot have payment date earlier than or equal to SIT Entry date") + return apperror.NewConflictError(paymentRequestArg.ID, "cannot have payment start date for additional days SIT earlier than or equal to SIT entry date") } }