Skip to content
C# library for integrating with Balanced (Payments for Marketplaces)
C#
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src
.gitignore
BalancedSharp.dll.nuspec
LICENSE
README.md

README.md

BalancedSharp

We are no longer developing this library

Our company is no longer using Balanced as our provider, so we don't currently have plans to finish this library. If you are interested in finishing this project feel free to fork it, and we can redirect people to your fork.

This is a .Net library for integrating with Balanced Payments (Payments for Marketplaces).

Getting Started

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".

Signing up for Balanced

Test driving their api is as easy as going to https://www.balancedpayments.com (Payments for Marketplaces) and clicking 'Try It Now'

Getting an Api Key

  • Go to the Balanced Payments Dashboard
  • Click "settings"

To use the library you will 'api key secret' underneath the marketplace section.

Hello World

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");

Getting Data

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 Data

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
});

Common Examples

Api

For more information on the Balanced Api itself go to the Balanced Payments Rest Api

Running the Tests

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.

License

This software is licensed under the MIT License. View the LICENSE file for more information.

Something went wrong with that request. Please try again.