-
Notifications
You must be signed in to change notification settings - Fork 18
Home
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.
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.
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.
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,
PaymentsApiKey = "YOUR_PAYMENTS_API_PASSCODE",
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.