This is a .Net library for integrating with Balanced Payments (Payments for Marketplaces).
The first thing you need to do to use this library is get your api key. They can be found on the balanced dashboard under "settings".
Test driving their api is as easy as going to https://www.balancedpayments.com (Payments for Marketplaces) and clicking 'Try It Now'
- Go to the Balanced Payments Dashboard
- Click "settings"
To use the library you will 'api key secret' underneath the marketplace section.
We tried to architect the library to follow the specs in the Balanced Payments Rest Api. Everything stems from the BalancedService:
BalancedService service = new BalancedService("myapikey");
Every section of the api has a direct uri path to get the data you need. If you were looking to get the details of a bank account:
BalancedService service = new BalancedService("myapikey");
var bankAccount = service.Account.Get("https://api.balancedpayments.com/v1/bank_accounts/BA6ThbEt9vlVXtNB1K4C9VUs");
Creating information can be done at multiple levels. For example you can create a bank account:
BalancedService service = new BalancedService("myapikey");
var account = service.CreateBankAccount(new BankAccount()
{
Name = "myName",
AccountNumber = "120923409",
RoutingNumber = "029034080",
Type = BankAccountType.Checking
});
Or you can create a card for the default marketplace:
BalancedService service = new BalancedService("myapikey");
var card = service.CurrentMarketplace.CreateCard(new Card()
{
CardNumber = "0293840298340",
ExpirationYear = 2020,
ExpirationMonth = 10,
SecurityCode = 234
});
For more information on the Balanced Api itself go to the Balanced Payments Rest Api
If unit testing is your thing just open Config.cs in the BalancedSharp.Test project and change the Api key. All tests are done in NUnit.
This software is licensed under the MIT License. View the LICENSE file for more information.