Skip to content
This repository was archived by the owner on Feb 27, 2025. It is now read-only.

Fix grammar and string concatenation in card holder details validation message #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SecureSubmit.Tests/Validation/HpsInputValidationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ public void FirstNameWithSpecialChars()

#endregion

#region InvalidCardDeatails
#region InvalidCardDetails

[TestMethod, ExpectedException(typeof(HpsInvalidRequestException))]
public void FirstNameWithLimits()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public static string CardHolderDetails(string cardHolderDetail, AddressFields fi
dict.Add(AddressFields.State, STATE_MAX_LENGTH);
if ((!string.IsNullOrEmpty(cardHolderDetail)) && (cardHolderDetail.Length > dict[fieldName]))
{
throw new HpsInvalidRequestException(HpsExceptionCodes.InvalidCardHolderDetail, "The value for " + fieldName + " should not more than" + dict[fieldName] + "characters", "cardHolderDetail");
throw new HpsInvalidRequestException(HpsExceptionCodes.InvalidCardHolderDetail, "The value for " + fieldName + " should not be more than " + dict[fieldName] + " characters", "cardHolderDetail");
}
return cardHolderDetail;
}
Expand Down