All Projects → Mangopay → mangopay2-net-sdk

Mangopay / mangopay2-net-sdk

Licence: other
.Net SDK for MANGOPAY

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to mangopay2-net-sdk

mangopay2-python-sdk
SDK Python for MANGOPAY
Stars: ✭ 31 (+63.16%)
Mutual labels:  payments, fintech, mangopay, wallets
mangopay2-java-sdk
Java SDK for MANGOPAY
Stars: ✭ 23 (+21.05%)
Mutual labels:  payments, fintech, mangopay, wallets
Mojaloop
Starting point for on-boarding and contribution documentation for mojaloop
Stars: ✭ 267 (+1305.26%)
Mutual labels:  payments, fintech
Mangopay2 Nodejs Sdk
Node.js SDK for MANGOPAY
Stars: ✭ 40 (+110.53%)
Mutual labels:  payments, fintech
bitcoin-ux
💅💸 Ongoing assessment of bitcoin payments and privacy UX for @BitcoinDesign Community as well as tools to help designers understand the underlying protocols and specifications.
Stars: ✭ 39 (+105.26%)
Mutual labels:  payments, fintech
Mangopay2 Php Sdk
PHP SDK for MANGOPAY
Stars: ✭ 108 (+468.42%)
Mutual labels:  payments, fintech
Akaunting
Free and Online Accounting Software
Stars: ✭ 4,599 (+24105.26%)
Mutual labels:  payments, fintech
Mortgageblockchainfabric
Mortgage Processing App using Hyperledger Fabric Blockchain. Uses channels for privacy and access, and restricts read/write previleges through endorsement policies
Stars: ✭ 45 (+136.84%)
Mutual labels:  payments, fintech
Openfintech
Opensource FinTech standards & payment provider data
Stars: ✭ 87 (+357.89%)
Mutual labels:  payments, fintech
terms-dictionary
Simple definitions of terms, acronyms, abbreviations, companies, and projects related to financial services and Moov.
Stars: ✭ 48 (+152.63%)
Mutual labels:  payments, fintech
adyen-android
Adyen SDK for Android
Stars: ✭ 89 (+368.42%)
Mutual labels:  payments
py-investment
Extensible Algo-Trading Python Package.
Stars: ✭ 19 (+0%)
Mutual labels:  fintech
lnd-routing
Lightning network liquidity service
Stars: ✭ 16 (-15.79%)
Mutual labels:  payments
Australian-Open-Banking-Data-Database
This is an ongoing collection of Open Banking Data APIs for Australian deposit taking institutions.
Stars: ✭ 72 (+278.95%)
Mutual labels:  fintech
graft-ng
Supernode for GRAFT Network - 2nd layer Monero implementation for instant transactions and service brokers
Stars: ✭ 20 (+5.26%)
Mutual labels:  payments
moneywave-nodejs
A client library for moneywave API
Stars: ✭ 16 (-15.79%)
Mutual labels:  fintech
xdagj
XDAGJ is an implementation of XDAG in Java. https://xdag.io
Stars: ✭ 81 (+326.32%)
Mutual labels:  wallets
cms-prestashop
YooKassa payment module for PrestaShop
Stars: ✭ 13 (-31.58%)
Mutual labels:  payments
borica-3ds
PHP Borica EMV 3DS library
Stars: ✭ 15 (-21.05%)
Mutual labels:  payments
sep-pay
Pay.ir Payment Package for Laravel 5.3+
Stars: ✭ 17 (-10.53%)
Mutual labels:  payments

MANGOPAY .NET SDK Build Status

MangopaySDK is a Microsoft .NET client library to work with Mangopay REST API.

Installation and package dependencies

This SDK is currently targeting .NET Standard 2.1 and .NET 6.0. It has 4 dependencies on external packages. These dependencies are:

  • Common.Logging library (version 3.4.1)
  • Newtonsoft.Json (version 13.0.1)
  • RestSharp (version 107.3.0)
  • NETStandard.Library (version 2.0.3)

The installation is as easy as downloading the SDK package and storing it under any location that will be available for referencing by your project (see examples below). You can also install from the .Net Package Manager Console:

Install-Package mangopay2-sdk

License

MangopaySDK is distributed under MIT license, see LICENSE file.

Unit Tests

Tests are placed in MangoPay.SDK.Tests project in solution.

Contact

Report bugs or suggest features using issue tracker at GitHub.

Account creation

You can get yourself a free sandbox account or sign up for a production account by registering on the Mangopay site (note that validation of your production account involves several steps, so think about doing it in advance of when you actually want to go live).

Configuration

Using the credential info from the signup process above, you should then set api.Config.ClientId to your MANGOPAY Client ID and api.Config.ClientPassword to your apiKey.

api.Config.BaseUrl is set to sandbox environment by default. To enable production environment, set it to https://api.mangopay.com:

api.Config.BaseUrl = "https://api.mangopay.com";

The ClientId, ClientPassword and BaseUrl properties are mandatory. Optionally, you can set the logger instance, setting LoggerFactoryAdapter property to an instance of ILoggerFactoryAdapter. By default, there is NoOpLoggerFactoryAdapter used, what means there won't be any logs emitted anywhere. For more details please refer to the Common.Logging library documentation.

Below is the example showing how to configure SDK:

MangoPayApi api = new MangoPayApi();

// configure client credentails..
api.Config.ClientId = "your-client-id";
api.Config.ClientPassword = "your-client-api-key";
api.Config.BaseUrl = "https://api.sandbox.mangopay.com";

// ..and optionally, set the logger you want (here, the console logger is used)
api.Config.LoggerFactoryAdapter = new Common.Logging.Simple.ConsoleOutLoggerFactoryAdapter();

// now you're ready to call API methods, i.e.:
var users = api.Users.GetAll();

Sample usage (get, update and save an entity)

MangoPayApi api = new MangoPayApi();

// configuration
api.Config.ClientId = "your-client-id";
api.Config.ClientPassword = "your-client-api-key";

// get some Natural user
var user = api.Users.GetNatural(someUserId);

// create update entity
var userPut = new UserNaturalPutDTO
{
    Tag = user.Tag,
    Email = user.Email,
    FirstName = user.FirstName,
    LastName = user.LastName + " - CHANGED",
    Address = user.Address,
    Birthday = user.Birthday,
    Nationality = user.Nationality,
    CountryOfResidence = user.CountryOfResidence,
    Occupation = user.Occupation,
    IncomeRange = user.IncomeRange
};

// save updated user
var userSaved = api.Users.UpdateNatural(userPut, user.Id);

// get his bank accounts
var accounts = api.Users.GetBankAccounts(user.Id, new Pagination(2, 10));

// get all users (with pagination)
var users = api.Users.GetAll(new Pagination(1, 8));
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].