Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasPerego committed Jan 24, 2018
2 parents 84996dd + cfc3716 commit b3ab32a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
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 :

Expand Down Expand Up @@ -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);
}
}
}

0 comments on commit b3ab32a

Please sign in to comment.