Dragan Blagojevic edited this page Feb 21, 2018 · 20 revisions

Welcome to the Bambora (North America), Inc. C# .NET SDK wiki!

Here you will find out all the information you need to get started accepting credit card and Interac payments on your website.

The C# .NET Bambora SDK makes payments simple and painless. You can get up and running in 3 steps:

Want to jump ahead? Check out our API documentation.

Step 1: Create a Test Account

Head over to the Bambora site and click the Get Started button to create your account. Take note of the Merchant ID it gives you.

Step 2: Download the SDK

Run Nuget to download the SDK: https://www.nuget.org/packages/Bambora.NA.SDK/

From the command line you can run:

Install-Package Bambora.NA.SDK

Or use visual studio to add the Bamboira.NA.SDK package to your project.

Step 3: Run this example code

Create a test class in your .NET project and add the following code to your main method.

Gateway bambora = new Gateway () {
    MerchantId = YOUR_MERCHANT_ID,
    ApiVersion = "1"

PaymentResponse response = bambora.Payments.MakePayment (
    new CardPaymentRequest {
        Amount = 100.00,
        OrderNumber = "orderNum002233",
        Card = new Card {
            Name = "John Doe",
            Number = "5100000010001004",
            ExpiryMonth = "12",
            ExpiryYear = "18",
            Cvd = "123"

Switch the MerchantId variable's value from YOUR_MERCHANT_ID to your actual merchant ID.

Next, head to the Merchant Member Area and navigate to

Administration -> Account -> Order Settings

Copy the API Key and replace the ApiKey variable's "YOUR_PAYMENTS_API_PASSCODE" with your actual API key.

Run the code to make a payment!


Now that you have your feet wet, dive right into the rest of our APIs.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.