Use Commerce Payment Visma Pay module instead of this one.

...

This module integrates Bambora Europe API (Bambora Payform, Paybyway) with Drupal Commerce, providing an off-site payment method. E-commerce site owners may configure e-payments (online banks) via Bambora using this module.

Currently supported banks include (as per Bambora Europe API):

Bambora allows your customers to pay with the selected online banks in Drupal Commerce. While Bambora Payform is available in many countries and currencies at the moment this module supports payments only only in EUR, and no credit card payments.

Installation

  1. Create an account at https://www.bambora.com/
  2. Download the module, composer require drupal/commerce_bambora_europe
  3. Enable Commerce Bambora Europe (commerce_bambora_europe).
  4. Add a payment method in admin/commerce/config/payment-gateways
  5. Add and configure payment gateway using API keys (Private key, API key) from https://payform.bambora.com/merchant/sub-merchants/

API key management

It is highly recommended to configure API keys via settings.php, and set the configuration keys to some other values in order to not have the API Private key getting committed to code repository. Keys are set per payment method, check the payment method configuration form for more details.

Since the release 8.x-1.0-beta4 there are two ways.

Recommended

Configure 2 sets of API keys in your settings.php file, one for Live (production) Mode and one for Test Mode.

The payment gateway configuration form has a setting to choose the Mode it is in, admin/commerce/config/payment-gateways.

$settings['bambora_offsite_redirect']['MACHINE-NAME.bambora_api_key.live'] = 'PROD-api-key';
$settings['bambora_offsite_redirect']['MACHINE-NAME.bambora_private_key.live'] =  'PROD-api-secret';
# TEST MODE, Mode set to 'test'.
$settings['bambora_offsite_redirect']['MACHINE-NAME.bambora_api_key.test'] = 'TEST-api-key';
$settings['bambora_offsite_redirect']['MACHINE-NAME.bambora_private_key.test'] = 'TEST-api-secret';

Deprecated

The old way still works, but you can have only one set of API credentials and they apply to all instances using this module, regardless of the selected Mode.

$settings['bambora_api_key'] = 'API-KEY';
$settings['bambora_private_key'] = 'API-PRIVATE-KEY;

Credit card payments

This is not yet possible to do with this module. Patches or funding the development work are both welcome.

Supporting organizations: 

Project information

Releases