Skip to content

Commit

Permalink
Transaction id validation removed
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldwight committed Aug 5, 2023
1 parent f739a9c commit 9bbf8fb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions MpesaSdk/Validators/MpesaTransactionStatusValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@ public MpesaTransactionStatusValidator()
.WithMessage("{PropertyName} - The result url is required.")
.Must(x => LinkMustBeAUri(x))
.WithMessage("{PropertyName} - The result url should be a valid secure url.");

RuleFor(x => x.TransactionID)
.NotNull()
.WithMessage("{PropertyName} - The Mpesa transactionID is required.")
.NotEmpty()
.WithMessage("{PropertyName} - The Mpesa transactionID should not be empty.");
}

private static bool LinkMustBeAUri(string link)
Expand Down

0 comments on commit 9bbf8fb

Please sign in to comment.