Skip to main content

User Guide


  • Magento 2 installed (Magento 2.2.x, Magento 2.3.x, Magento 2.4.x)
  • SSL must be installed on your site and active on your Checkout pages.
  • You must have a Vipps merchant account. Sign up here.
  • As with all Magento extensions, it is highly recommended backing up your site before installation and to install and test on a staging environment prior to production deployments.
  • Supported protocols HTTP1/HTTP1.1
    • Magento relies on the Zend Framework, which does not support HTTP/2.
    • HTTP/1.1 must therefore be "forced", typically by using CPanel or similar.


Installation via Composer

  1. Navigate to your Magento root directory.
  2. Enter command: composer require vipps/module-payment
  3. Enter command: php bin/magento module:enable Vipps_Payment
  4. Enter command: php bin/magento setup:upgrade
  5. Put your Magento in production mode, if required.

Installation via Marketplace

Here are steps required to install Payments extension via Component Manager.

  1. Make a purchase for the Vipps extension on Magento Marketplace.
  2. From your Magento Admin, access System > Web Setup Wizard page.
  3. Enter Marketplace authentication keys. Please read about authentication keys generation.
  4. Navigate to Component Manager page.
  5. On the Component Manager page, click the Sync button to update your new purchased extensions.
  6. Click Install in the Action column for Realex Payments component.
  7. Follow Web Setup Wizard instructions.


The Vipps Payment module can be easily configured to meet business expectations of your web store. This section will show you how to configure the extension via the Magento Admin Panel.

  1. From Magento Admin, navigate to Store > Configuration > Sales > Payment Methods section.
  2. On the Payments Methods page, the Vipps Payments method should be listed together with other installed payment methods in a system.
  3. By clicking the Configure button, all configuration module settings will be shown.
  4. Once you have finished the configuration, click Close and Save button.
  5. Clear Magento Cache.

Add a separate connection for Vipps resources

These settings are required to prevent the loss of profiles when Magento reverts invoice or refund transactions.

  • Duplicate the default_connection in app/etc/env.php and name it 'vipps'. It should look like:
'vipps' => [
'host' => 'your_DB_host',
'dbname' => 'your_DB_name',
'username' => 'your_user',
'password' => 'your_password',
'model' => 'mysql4',
'engine' => 'innodb',
'initStatements' => 'SET NAMES utf8;',
'active' => '1',
  • Then, add the following configuration to the resource array in the same file:
'vipps' => [
'connection' => 'vipps',


The Vipps Payments configuration is divided by sections. It helps to quickly find and manage settings of each module feature:

Ensure that you check all configuration settings before using Vipps Payment. Pay special attention to the Basic Settings section.

Basic Settings

Basic Settings include:

  • Environment - Vipps API mode, which can be Production or Develop.
  • Payment Action - Authorize (process authorization transaction; funds are blocked on customer account, but not withdrawn) or Capture (withdraw previously authorized amount).
  • Debug - Log all actions with Vipps Payment module into {project_root}/var/log/vipps_debug.log file (not recommended in production mode).
  • Order Status - Default order status before redirecting back to Magento. Can be Pending or Payment Review.
  • Request/Response Profiling - Log all requests/responses to Vipps API into vipps_profiling table.
  • Merchant Serial Number - ID number for the sales unit.
  • Client ID - Client ID for the sales unit (the "username").
  • Client Secret - Client secret for the merchant (the "password").
  • Subscription Key - Subscription key for the API product.

See API keys for information about how to find the values for Merchant Serial Number, Client ID, Client Secret, and Subscription Key.

Screenshot of Basic Vipps Settings

Checkout Settings

Vipps payment will be unavailable when disallowed shipping methods are selected on checkout. These methods are also unavailable on the Express Checkout page.

Screenshot of Checkout Settings

Express Checkout Settings

Screenshot of Express Vipps Settings

Cancellation Settings

The Cancellation Settings include:

  • Cart Persistence - If set to Yes and client cancels an order on Vipps side, the cart will still contain the recently added products.
  • Number of Attempts - The number of failed order placement attempts allowed before the order will be canceled.
  • Storage Period - The number of days to store the quote information. Use 0 to keep all records.
  • Inactivity Time - (Developers only) The number of minutes that customer is idle before the Vipps order will be canceled in Magento.
  • Processing Type - Deprecated setting that will be removed in future releases. (Should be set to "Automatic").

Screenshot of Checkout Settings

Order processing

Please refer to the Magento official documentation to learn more about order processing and order management.

Quote Processing Flow

The quote is an offer. The user accepts the offer when checking out, and it is converted to an order.

When the payment has been initiated (customer redirected to Vipps), Magento creates a new record on the Quote Monitoring page and starts tracking a Vipps order. To do that, Magento has a cron job that runs by schedule/each 10 minutes.

You can find this page under the System > Vipps menu. For the cancellation configuration settings, see Store > Sales > Payment Methods > Vipps > Cancellation.

  1. When a payment is initiated, a new record is created on the Vipps Quote Monitoring page with status New.

    • For a "Regular Payment", the order is immediately placed on the Magento side with status new, pending, or payment review, depending on the configuration.
  2. Magento regularly (by cron) polls Vipps for orders to process.

  3. When an order is accepted on Vipps side, Magento tries to place the order and marks a record as Placed

    • For a "Regular Payment", the Magento order is moved to status Processing.
  4. When an order is cancelled on the Vipps side, Magento marks such record as Cancelled.

    • The order is canceled on the Magento side, if it was previously placed.
  5. If an order has not been accepted on the Vipps side within some period of time, it marked as expired. Magento subsequently marks the order as Expired.

    • The order is canceled on the Magento side, if it was previously placed.
  6. If an order has not been yet been accepted on the Vipps side and has not yet expired, Magento marks it as Processing. An appropriate message is added on Record details page.

  7. If an order has been accepted on the Vipps side, but an error has occurred during order placement on Magento side, such record marks as Processing. An appropriate message is added on record details page.

  8. Magento will attempt to process a record three times. After it fails three times, the record is marked as Place Failed.

  9. It is possible to specify that Magento must cancel a Vipps order automatically when an appropriate Magento quote has failed, so that client's money released. See Store > Sales > Payment Methods > Vipps > Cancellation.

  10. If it is specified that Magento must cancel all failed quotes, then Magento fetches all records marked as Place Failed, cancels them, and marks them as Cancelled.

Here is a diagram of the process:

Screenshot of Quote Processing Flow

Quote Monitoring Tool

From version 1.2.1, we released Quote Monitoring.

Quote Monitoring simplifies detection of failed order placement and identifies the root causes of failures.

The monitoring tool is located under System > Vipps Payment > Quote Monitoring. This page displays all orders that were attempted to be placed. Each record in the list provides detailed information about order creation flow: current status, list of attempts, each attempt results.

Monitoring quote statuses include:

  • New - Payment is initiated on the Vipps side.
  • Processing - Magento has started processing for initiated payment.
  • Placed - The order has been placed.
  • Expired - The customer has not approved payment for some time.
  • Placement Failed - All attempts were unsuccessful.
  • Canceled - The payment has been canceled. Cancellation can be initiated by the customer in Vipps or manually/automatically by Magento for Quotes in Placement Failed status.
  • Cancel Failed - The payment could not be canceled. Record in this status and require admin/developer interaction.

Enable debug mode / requests profiling

If you have experienced any issue with Vipps, try to enable Request Profiling and Debug features in the Vipps payment configuration area: Stores > Configuration > Sales > Payment Methods > Vipps.

Screenshot of Vipps Configuration Area

After that, all information related to the Vipps payment module will be stored into two files:

  • {project_root}/var/log/vipps_exception.log
  • {project_root}/var/log/vipps_debug.log

Requests Profiling is a page in the Magento Admin panel that helps you to track a communication between Vipps and Magento. You can find the page under System > Vipps.

Screenshot of Request Profiling Grid

On the page, you can see the list of all requests for all orders that Magento sends to Vipps. By clicking on Show in the Action column of the grid, you can find the appropriate response from Vipps.

By using the built-in Magento grid filter, you can find all requests per order that you are interested in.

Tax Calculation for Express Checkout

When enabling the Express checkout payment in the configuration area, you may see a notification at the top of admin panel saying: Express Checkout notice

This means that you should change Tax Calculation Settings to be based on Shipping Origin: Tax Calculation Settings

Otherwise, an issue with calculating delivery cost might occur.


The Magento platform provides various ways to create custom flows that are difficult and unnecessary to describe in one page. Here we provide a guide and references that can help you to understand the general idea of where to start.

For example, to customize the Order Success page, you can:

  • Use an existing 3rd party module or by doing the customization yourself. Visit Magento Marketplace to see which 3rd party solutions are available.

  • Do the customization yourself. Refer to Magento Frontend Developer Guide.

    The following code is related to the Order Success page:

    • Template: magento/module-checkout/view/frontend/templates/success.phtml
    • Layout: magento/module-checkout/view/frontend/layout/checkout_onepage_success.xml

Help us improve our documentation

Did you find what you were looking for?