BMO Sandbox Environment

After your Collect B-MO account has been approved, the next step is to enter the development phase using our sandbox environment. The sandbox environment allows you to test your integration with our system in a controlled setting before moving to live access. This page provides details about the sandbox credentials, their usage, and the subsequent steps leading up to live access.

What is the BMO Sandbox Environment?

The BMO Sandbox is a simulated environment that mirrors our live system but is designed for testing purposes. It allows developers to integrate and test their applications with B-MO services without affecting real transactions or data. Using the sandbox environment, you can ensure that your integration works correctly and meets all necessary requirements before transitioning to live operations.

Sandbox Credentials

Upon approval of your Collect B-MO account, you will receive sandbox credentials. These credentials are used to access the sandbox environment and include:

  • Sandbox API Key: A unique identifier used to authenticate your requests to the sandbox environment.
  • Sandbox API Secret: A secret key used in conjunction with the API Key to secure your requests.
  • Sandbox Base URL: The base URL for accessing the sandbox environment. All API requests should be directed to this URL during development.

Here are example credentials provided for sandbox testing:

  • Sandbox API Key: sandbox_api_key_1234567890
  • Sandbox API Secret: sandbox_api_secret_abcdef123456
  • Sandbox Base URL: https://sandbox.bmo.bj/api

Using the Sandbox Environment

To use the sandbox environment, follow these steps:

  1. Set Up Your Development Environment

    Configure your development environment to use the sandbox credentials. Replace any live credentials with the sandbox API Key and API Secret in your application’s configuration.

  2. Integrate with the Sandbox API

    Use the sandbox base URL to make API requests. Test all functionalities of your integration, including transaction processing, error handling, and data management.

    Example Request to Sandbox API:

    import axios from 'axios';
    
    const sandboxApiKey = 'sandbox_api_key_1234567890';
    const sandboxApiSecret = 'sandbox_api_secret_abcdef123456';
    const sandboxBaseUrl = 'https://sandbox.bmo.bj/api';
    
    axios.get(`${sandboxBaseUrl}/example-endpoint`, {
      headers: {
        'X-Auth-ApiKey': sandboxApiKey,
        'X-Auth-ApiSecret': sandboxApiSecret
      }
    })
    .then(response => {
      console.log('Sandbox API Response:', response.data);
    })
    .catch(error => {
      console.error('Sandbox API Error:', error.message);
    });