-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/NicolasPerego/mangopay-ne…
- Loading branch information
Showing
1 changed file
with
5 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
This is a .NET Core 2.0 MangoPay API SDK (www.mangopay.com) | ||
This is a .NET Core 2.0 compliant MangoPay API SDK (www.mangopay.com). | ||
|
||
It's fully async. | ||
All tests are OK. | ||
I'll try to update it when the official .NET 4.5 release is updated. | ||
|
||
Usage with .NET DI : | ||
|
||
|
@@ -40,8 +42,8 @@ Then you can inject it in a controller like this : | |
[HttpPost] | ||
public async Task CreateMangoPayNaturalUser() | ||
{ | ||
UserNaturalPostDTO user = new UserNaturalPostDTO("[email protected]", "Jane", "Doe", new DateTime(1975, 12, 21, 0, 0, 0), "FR", "FR"); | ||
UserNaturalPostDTO user = new UserNaturalPostDTO("[email protected]", "Jane", "Doe", new DateTime(1975, 12, 21, 0, 0, 0), CountryIso.FR, CountryIso.FR); | ||
|
||
var createdUser = await _mangoPayApi.Users.Create(Guid.NewGuid().ToString(), user); | ||
} | ||
} | ||
} |