Zen Cart

DIBS has created a plug-in-module for Zen Cart that offers you a smoother integration.

Before starting to use our module we recommend you to contact our sales department. By doing so, you can ensure that you get the right payment methods, currencies, and know which of our payment windows best suits your business.

In order to go live with your webshop you will also need an agreement with an acquirer, who takes care of collecting and depositing your money. DIBS has partnered with a number of acquirers who offer a wide variety of options and we will provide the help and guidance you need in order to get started.

You are welcome to sign up for a free demo account http://www.dibspayment.com/demo-signup allowing you to prepare your technical deployment and performing test payments using our test card data.

Download module

 


Contact us on Github
Join our community

Guide

Module last updated 2014-04-09
Module tested on Zen Cart versions 1.3, 1.5
DIBS module names and versions DIBS PW: 4.1.3
Flexwin 3.0.3
Changelog DIBS Payment Window

4.1.3:

- Added support for orderrows.  Added DIBS invoice fields on order info (acquirerFirstName, acquirerLastNmae) e.t.c

4.1.2

- Added partnerId parameter

4.1.1:

- Added language file to translate

Changelog DIBS Flexwin  

 

Features

Module

Admin

Comments

Authorization

NA

No

 

Capture

NA

Yes

 

Instant capture

NA

No

 

Refund

NA

Yes

 

Ticket

No

No

 

Multi refund

NA

Yes

 

Multi capture

NA

Yes

 

Part capture

NA

Yes

 

Part refund

NA

Yes

 

 

 

Return values

Start by loging in to DIBS Administration system. Click on “Integration” and “Return Values”. Then check all boxes as bellow and click on “save settings”.

Make sure that all return values are activated and save the settings.

Activate your HMAC Key (DIBS Payment Window)

Click on “Integration” and “HMAC key”. Mark “Perform HMAC checksum control” and click “Update”. The HMAC key is to be used later on in the process.

Activate MD5 control (DIBS Flexwin)

Click on “Integration” and “MD5 keys”. Mark “Perform MD5 control.” And click “Update”. The MD5 Key is to be used later on in the process.

Step 1

Unpack the module package

Step 2

Upload with FTP (or any other convenient to you way) the directories ext, images and includes to root directory of your ZenCart installation.

Note: Please, recheck the owner and permissions of the newly uploaded files. If you don't know how to do that or what the right values are for the parameters, please contact your system administrator or developer.

Step 3

Go to your site in a browser and log in as administrator

Step 4

Go to "Modules" -> "Payment" in the top menu

Step 5

Click the name of the module in the appeared modules list

Step 6

Click the "install" button on the right column

NOTE: Module name on the picture can differ from the name of your module

Step 1

Go to your site in a browser and log in as administrator

Step 2

Go to "Modules" -> "Payment" in the top menu

Step 3

Click the name of the module in the appeared modules list

Step 4

Insert the MerchantID, currency ect.

Step 5

If you want to do test transactions, activate test mode

Step 6

Click "update" when done

If you're installing the FlexWin module, you can find the following files in your package:

  • orders.php – updated orders.php file with integrated buttons support.
  • orders.php.patch – patch to update original file with diff tool.
  • orders_original.php – original orders.php that we used to integrate buttons.

 

You can add API buttons support in following ways:

  • If your %admin_directory%/orders.php is the same as orders_original.php from module package – just replace your file with ours.
  • If your %admin_directory%/orders.php is not the same as orders_original.php from module package – try to apply patch orders.php.patch from module package or to add changes manually.

Note: Here %admin_directory% is the name you gave to the administrator directory after the ZenCart installation.

Note: Please, backup your original order.php file, before replacing it or making any changes.

We recommend performing test transactions before your shop goes Live. In our toolbox you can find test information for your own test. When you see that it works with the test cards, you can disable test mode for the payment module and perform transactions with real cards. We would also like to recommend you to test transactions with the different currencies that you want to be activated.

When this works, and you can track the payments in DIBS Administration, the technical integration is done.

On our techsite you will also find logos and more information about what your site needs to show in order to follow rules and regulations from your acquiring partner.

When you have been through the steps above you will be set to go Live!

DIBS Payment Window

Problem: Calling DIBS Payment Window throws error “A technical error has  occurred”

Solution:

There can be various reasons and solutions to this message:


A: Your agreement with DIBS is not yet in a live state, but the test mode setting in the module is set to false/no. Your agreement will be set live when you have signed an acquirer agreement and a site inspection has been made by DIBS in your webshop. We will notify you in writing when the acquirer agreement has been tested. 
For more information regarding the site inspection and steps needed before your agreement is put in live mode, please see the following steps 
http://tech.dibs.dk/10_step_guide/site_inspection/
http://tech.dibs.dk/10_step_guide/go_ahead/

B: Your agreement with DIBS is put in live mode, but the test mode setting is still activated in the module.  If you have received confirmation from us that your agreement with DIBS has been set live, the test mode setting in the module must be deactivated in order to carry out live payments.  Check that test mode is set to false/no in the module
The error message will show the following information if test mode is activated in the module, but deactivated in DIBS: 
The following fields had validation errors:
currency - There are no payment types available in test matching that currency

C: Your agreement with DIBS does not support the currency. Check that you have signed an acquirer agreement for the currency. If not, please contact the acquirer to add the currency to your agreement. The acquirer will relay this information to DIBS, but please note that adding currencies might take a few days. 

Please contact DIBS support for additional information regarding the status of your agreement and available currencies.

D: The module is configured with incorrect HMAC value.  The error message will include the following information:  The following fields had validation errors:  MAC - did not match calculated value.


Check that the values of HMAC key  in the module corresponds to the exact same value generated in the DIBS Administration for the Merchant ID you are using. The key is found in the DIBS Admin à Integration à HMAC

Flexwin

Problem: Calling FlexWin returns “No paytype(s)! Missing test parameter?”

 

Solution:

There can be various reasons and solutions to this message:

A: Your agreement with DIBS is not yet in a live state, but the test mode setting in the module is set to false/no. Your agreement will be set live when you have signed an acquirer agreement and a site inspection has been made by DIBS in your webshop. We will notify you in writing when the acquirer agreement has been tested. 
For more information regarding the site inspection and steps needed before your agreement is put in live mode, click here.


B: Your agreement with DIBS is put in live mode, but the test mode setting is still activated in the module. If you have received confirmation from us that your agreement with DIBS has been set live, the test mode setting in the module must be deactivated in order to carry out live payments.  Check that test mode is set to false/no in the module.

C: Your agreement with DIBS does not support the currency. Check that you have signed an acquirer agreement for the currency. If not, please contact the acquirer to add the currency to your agreement. The acquirer will relay this information to DIBS, but please note that adding currencies might take a few days. 

Please contact DIBS support for additional information regarding the status of your agreement and available currencies.

Problem:  Calling FlexWin returns “Md5Key mismatch!” error message.


Solution:

Check that the values of the MD5 key 1 and 2 in the module corresponds to the exact same values generated in the DIBS Administration for the Merchant ID you are using. The keys are found in the DIBS Admin à Integration à MD5 Keys

Problem: Calling FlexWin returns “no md5key!”


Solution:

Check that the values of the MD5 key 1 and 2 in the module corresponds to the exact same values generated in the DIBS Administration for the Merchant ID you are using. The keys are found in the DIBS Admin à Integration à MD5 Keys.

Should you wish to deactivate the MD5 key control (not recommended), you can do so in the DIBS Administration.  The MD5 keys must also be removed from the module settings. Please notice that any spaces in the MD5 key 1 or 2 fields is interpreted as content.

 

Help and contact

Please sign up for technical updates

- no sales buzz here!

Check your interests :

Do you have a question or need help?
Follow us
DIBS Payment Services
Stockholm +46 (0)8-527 525 00
Göteborg +46 031-600 800
København +45 7020 3077
Oslo +47 21 55 44 00