Aurora Walker edited this page Dec 3, 2018 · 6 revisions

Welcome to the Bambora Java SDK wiki!

Please note that this SDK still contains some references to the previous 'Beanstream' name.

Also check out our main developer documentation located at

Step 1: Create a Test Account

Head over to the Quick Start Guide and create a developer sandbox account. Take note of the Merchant ID it gives you.

Step 2: Download the SDK

Check out the source here and build the jar file.

Add the jar file to your project.

Step 3: Run this example code

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

Gateway beanstream = new Gateway("v1", YOUR_MERCHANT_ID, "YOUR_API_KEY");

CardPaymentRequest req = new CardPaymentRequest();
			.setName("John Doe")
PaymentResponse response = beanstream.payments().makePayment(req);

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_API_KEY" with your actual API key.

Run the code to make a payment!

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.