-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #474 from Adyen/develop
Release 7.2.0
- Loading branch information
Showing
37 changed files
with
932 additions
and
536 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
* @Aleffio @AlexandrosMor @martinsrenato @msilvagarcia @rikterbeek @deepu105 | ||
* @Aleffio @AlexandrosMor @martinsrenato @rikterbeek @deepu105 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
Adyen.Test/Mocks/checkout/paymentmethod-applepay-request.json
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"displayedReference": "Example displayed reference", | ||
"message": "Request processed successfully", | ||
"pspReference": "8516167336214570", | ||
"reference": "Example reference", | ||
"resultCode": "Success", | ||
"shopperNotificationReference": "IA0F7500002462" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ public void SerializationTest() | |
{ | ||
SaleToAcquirerData saleToAcquirerData = new SaleToAcquirerData | ||
{ | ||
Metadata = new Dictionary<string, string> { { "key", "value" } }, | ||
Metadata = new SortedDictionary<string, string> { { "key", "value" } }, | ||
ShopperEmail = "[email protected]", | ||
ShopperReference = "13164308", | ||
RecurringContract = "RECURRING,ONECLICK", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,11 +34,11 @@ public void TerminalCertificateCommonNameTest() | |
{ | ||
foreach (var terminalCNValidationParameter in GetTerminalCNValidationParameters()) | ||
{ | ||
bool result = Security.TerminalCommonNameValidator.ValidateCertificate(terminalCNValidationParameter.CommonName, terminalCNValidationParameter.Environment); | ||
Assert.AreEqual(result, terminalCNValidationParameter.TestSuccess); | ||
bool result = Security.TerminalCommonNameValidator.ValidateCertificate(terminalCNValidationParameter.CommonName, terminalCNValidationParameter.Environment); | ||
Assert.AreEqual(result, terminalCNValidationParameter.TestSuccess); | ||
} | ||
} | ||
|
||
private List<TerminalCNValidationParameters> GetTerminalCNValidationParameters() | ||
{ | ||
return new List<TerminalCNValidationParameters> | ||
|
@@ -48,12 +48,17 @@ private List<TerminalCNValidationParameters> GetTerminalCNValidationParameters() | |
new TerminalCNValidationParameters ( "[email protected], CN=legacy-terminal-certificate.live.terminal.adyen.com, OU=Mock, O=Mock, L=Mock, ST=MO, C=MO", Adyen.Model.Enum.Environment.Live, true ), | ||
new TerminalCNValidationParameters ( "[email protected], CN=P400-123456789.test.terminal.adyen.com, OU=Mock, O=Mock, L=Mock, ST=MO, C=MO", Adyen.Model.Enum.Environment.Test, true ), | ||
new TerminalCNValidationParameters ( "[email protected], CN=P400-123456789.live.terminal.adyen.com, OU=Mock, O=Mock, L=Mock, ST=MO, C=MO", Adyen.Model.Enum.Environment.Live, true ), | ||
new TerminalCNValidationParameters ( "[email protected], CN=S1E-000150123456789.test.terminal.adyen.com, OU=Mock, O=Mock, L=Mock, ST=MO, C=MO", Adyen.Model.Enum.Environment.Test, true ), | ||
new TerminalCNValidationParameters ( "[email protected], CN=S1E-000150123456789.live.terminal.adyen.com, OU=Mock, O=Mock, L=Mock, ST=MO, C=MO", Adyen.Model.Enum.Environment.Live, true ), | ||
// Wrong environment | ||
new TerminalCNValidationParameters ( "[email protected], CN=legacy-terminal-certificate.test.terminal.adyen.com, OU=Mock, O=Mock, L=Mock, ST=MO, C=MO", Adyen.Model.Enum.Environment.Live, false ), | ||
new TerminalCNValidationParameters ( "[email protected], CN=P400-123456789.test.terminal.adyen.com, OU=Mock, O=Mock, L=Mock, ST=MO, C=MO", Adyen.Model.Enum.Environment.Live, false ), | ||
new TerminalCNValidationParameters ( "[email protected], CN=legacy-terminal-certificate.live.terminal.adyen.com, OU=Mock, O=Mock, L=Mock, ST=MO, C=MO", Adyen.Model.Enum.Environment.Test, false ), | ||
new TerminalCNValidationParameters ( "[email protected], CN=P400-123456789.live.terminal.adyen.com, OU=Mock, O=Mock, L=Mock, ST=MO, C=MO", Adyen.Model.Enum.Environment.Test, false), | ||
// Invalid CN | ||
new TerminalCNValidationParameters ( "[email protected], CN=S1E-000150123456789.test.terminal.adyen.com, OU=Mock, O=Mock, L=Mock, ST=MO, C=MO", Adyen.Model.Enum.Environment.Live, false ), | ||
new TerminalCNValidationParameters ( "[email protected], CN=S1E-000150123456789.live.terminal.adyen.com, OU=Mock, O=Mock, L=Mock, ST=MO, C=MO", Adyen.Model.Enum.Environment.Test, false ), | ||
|
||
// Invalid CN | ||
new TerminalCNValidationParameters ( "[email protected], CN=wrong-terminal-certificate.test.terminal.adyen.com, OU=Mock, O=Mock, L=Mock, ST=MO, C=MO", Adyen.Model.Enum.Environment.Test, false ), | ||
new TerminalCNValidationParameters ( "[email protected], CN=legacyy-terminal-certificate.test.terminal.adyen.com, OU=Mock, O=Mock, L=Mock, ST=MO, C=MO", Adyen.Model.Enum.Environment.Test, false ), | ||
new TerminalCNValidationParameters ( "[email protected], CN=legacy-terminaal-certificate.test.terminal.adyen.com, OU=Mock, O=Mock, L=Mock, ST=MO, C=MO", Adyen.Model.Enum.Environment.Test, false ), | ||
|
@@ -67,6 +72,9 @@ private List<TerminalCNValidationParameters> GetTerminalCNValidationParameters() | |
new TerminalCNValidationParameters ( "[email protected], CN=-123.test.terminal.adyen.com, OU=Mock, O=Mock, L=Mock, ST=MO, C=MO", Adyen.Model.Enum.Environment.Test, false ), | ||
new TerminalCNValidationParameters ( "[email protected], CN=www.adyen.com, OU=Mock, O=Mock, L=Mock, ST=MO, C=MO", Adyen.Model.Enum.Environment.Test, false ), | ||
new TerminalCNValidationParameters ( "[email protected], CN=ANY, OU=Mock, O=Mock, L=Mock, ST=MO, C=MO", Adyen.Model.Enum.Environment.Test, false ), | ||
new TerminalCNValidationParameters ( "[email protected], CN=S1E-0001501234567891.test.terminal.adyen.com, OU=Mock, O=Mock, L=Mock, ST=MO, C=MO", Adyen.Model.Enum.Environment.Test, false ), | ||
new TerminalCNValidationParameters ( "[email protected], CN=S1E-0001501234567891.live.terminal.adyen.com, OU=Mock, O=Mock, L=Mock, ST=MO, C=MO", Adyen.Model.Enum.Environment.Live, false ), | ||
|
||
// Missing CN | ||
new TerminalCNValidationParameters( "[email protected], OU=Mock, O=Mock, L=Mock, ST=MO, C=MO", Adyen.Model.Enum.Environment.Test, false ) | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.