-
Notifications
You must be signed in to change notification settings - Fork 112
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 #379 from Adyen/develop
[PW-3899] Release 6.1.0
- Loading branch information
Showing
206 changed files
with
15,098 additions
and
6,823 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.vs/ | ||
TestResults/ | ||
|
||
.vagrant/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Adyen.Model.Checkout; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using Newtonsoft.Json; | ||
|
||
namespace Adyen.Test | ||
{ | ||
[TestClass] | ||
public class ApplePayDeserializationTest : BaseTest | ||
{ | ||
[TestMethod] | ||
public void Can_deserialize_applepay_paymentmethod_request() | ||
{ | ||
var mockPath = GetMockFilePath("Mocks/checkout/paymentmethod-applepay-request.json"); | ||
var response = MockFileToString(mockPath); | ||
|
||
var paymentMethod = JsonConvert.DeserializeObject<DefaultPaymentMethodDetails>(response); | ||
|
||
Assert.IsNotNull(paymentMethod); | ||
Assert.AreEqual("applepay", paymentMethod.Type); | ||
Assert.AreEqual("VNRWtuNlNEWkRCSm1xWndjMDFFbktkQU...", paymentMethod.ApplePayToken); | ||
} | ||
} | ||
} |
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.