Title: Login with Vipps and MobilePay
Author: WP Hosting AS
Published: <strong>20 de Novembro, 2019</strong>
Last modified: 2 de Xuño, 2026

---

Buscar plugins

![](https://ps.w.org/login-with-vipps/assets/icon-128x128.png?rev=3080150)

# Login with Vipps and MobilePay

 Por [WP Hosting AS](https://profiles.wordpress.org/wphostingdev/)

[Descargar](https://downloads.wordpress.org/plugin/login-with-vipps.1.4.2.zip)

 * [Detalles](https://gl.wordpress.org/plugins/login-with-vipps/#description)
 * [Valoracións](https://gl.wordpress.org/plugins/login-with-vipps/#reviews)
 *  [Instalación](https://gl.wordpress.org/plugins/login-with-vipps/#installation)
 * [Desenvolvemento](https://gl.wordpress.org/plugins/login-with-vipps/#developers)

 [Soporte](https://wordpress.org/support/plugin/login-with-vipps/)

## Descrición

Login with Vipps and MobilePay offers super-easy registration and login from the
leading smart-payment app in Norway with more than 4.2 million users. MobilePay 
is used by more than 75 % of Denmark’s population (4.4 million users), and more 
than 36 % of Finland’s population (2.6 million users). There is no easier login.
No more usernames or passwords.

The users need only remember their phone number. They are also able to provide information
that websites often require, like e-mail, phone numbers and addresses, from their
Vipps MobilePay profile with no tedious data entry.

The plugin is easy to modify for your own applications.

This solution is great for all websites that wants to:

 * Get more logged-in users
 * All Vipps and MobilePay-users can create a profile on your website with just 
   one click, and can be logged in directly on the next visit
 * You can modify content, messaging and retrieve stored shopping carts for the 
   user
 * Your customers can see order histories and potentially register product returns
 * More logged-in users gives you better overview and better conversion rates

### Get started

 * If you are a user of Vipps and MobilePay for E-Commerce, you can add Login with
   Vipps and MobilePay to your account on https://portal.vippsmobilepay.com and 
   find your API-keys there – see “Installation” for more details.
 * If you do not have an account with Vipps Mobilepay, you can order this here: 
   https://vippsmobilepay.com/no/priser/logg-inn . When the order has been processed,
   you will be notified and you will be able to retrieve the API-keys on https://
   portal.vippsmobilepay.com . Then see “Installation” for the next steps.

### Requirements

 * WordPress version 4.9 or above
 * PHP version 7.0 or above
 * Your website must have an SSL certificate and be available through HTTPS
 * OpenSSL must be configured for your PHP installation
 * For WooCommerce, the version requirement is 3.3.4 or above
 * The port 443 must be open for outward traffic on your servers firewall

### Feature Highlights

#### Fully integrated with WooCommerce

Allows login and registration on your account pages, cart, checkout and via shortcodes.
Addresses automatically synchronized with Vipps MobilePay on login.

#### User can register with one click

Login with Vipps and MobilePay is the easiest way to create a new account. The user
can easily share high-quality data from the user’s Vipps profile with the site owner.
Available information includes name, email, address, phone number, and birth date.
The identity of all Vipps users is verified using BankID, Norway’s leading electronic
ID, so rest assured that these are real people with correct name and information.(
Please note: Standard WordPress does not register information other than name and
email, so apart from WooCommerce, you will need to write code to use this information
for your particular application.)

#### Link existing account

Already registered users can link their current accounts when signing in with Vipps
or from their account page. Users can choose to update their address information
from Vipps MobilePay.

#### Customizable for your application

You can use the framework of this plugin to implement other solutions that require
verified users, without actually requiring login. For example, you might create 
a system for having users sign their comments with Vipps MobilePay so as to avoid
spam issues.

### Shortcodes

 * `[login-with-vipps text="Log in with Vipps (or MobilePay)" application="wordpress"]`–
   This will print out a Login with Vipps button that will log you into the given
   application, which by default can be either WordPress or WooCommerce.
 * `[continue-with-vipps text="Continue with Vipps" application="wordpress"]` – 
   This is the same, except for a different default text

### Customizing the Plugin

To use ‘Continue with Vipps/MobilePay’ in your application, there are two levels
of customizations available, except for a mass of filters and hooks.

#### Adding another ‘application’ to log into

Logging into basic WordPress and into an application like WooCommerce is different
in the details, especially with regards to
 * what page to redirect to (the profile
page, or your account page, or maybe the checkout page), * handling of user data(
for WooCommerce you want to update the users’ address) * and for error handling.

For your own application, you may well have other actions you want done after new
user registration, logins etc. We aim to provide support for as many applications
as possible in time, but to create your own, these are the main steps:

 * Define your application with a name. It should be a simple slug, like ‘wordpress’
   or ‘woocommerce’
 * Create your login button, and make it call the supplied Javascript function “
   login_with_vipps” with your application name as argument.
 * To customize, you can now modify several filters and hooks, the most important
   of which would be:
 * ‘continue_with_vipps_error__your application__login_redirect’. This takes and
   returns an error-page redirect, the error string, and the login session data 
   as an array. You can here return your own error page.
 * ‘continue_with_vipps_before__your application__login_redirect’. This takes your
   logged-in user and a session (which can be called as an array) and is called 
   right before the user is redirected. This would be a good place to add a filter
   to ‘login_redirect’ for instance.
 * Filter ‘continue_with_vipps__your application__users_can_register’. Takes a truth
   value, an array of userinfo from Vipps MobilePay and a session, and should return
   true only if you allow the user to register
 * Filter ‘continue_with_vipps__your application__create_userdata’. For newly registered
   users, takes an array to be passed to wp_update_user, an array of userinfo from
   Vipps MobilePay, and a session. You can here add your extra meta fields
 * Filter ‘continue_with_vipps__your application__allow_login’. Takes a truth value,
   a user object, userinfo from Vipps MobilePay and a session, and returns true 
   only if the user is allowed to log in

#### Adding another ‘action’ apart from logging in

You may want to do other things than logging in with the users’ confirmed Vipps 
MobilePay identity, and this plugin absolutely allows this. This might be submisssions
of comments, reviews and so forth without requiring logins, or even just as a convenient
way of letting users input their address.

These are the main steps:

 * Define your own action, like ‘submitaddress’.
 * Create your button. The handler should call the static method `ContinueWithVipps::
   getAuthRedirect($action)` (you can also provide an array of sessiondata which
   will be available in your handlers, and restrict the scope of the data to retrieve
   from Vipps MobilePay. The return value is an URL to which you should redirect
   your user.
 * Create your error handler. This should be hooked to ‘continue_with_vipps_error__your
   action_‘. It will receive an error string, a description of the error, sometimes
   an error hint, and the contents of your session (which will no longer be active).
   You will need to redirect to your error page here, and show your user the error.
   The redirect is important, you should not output content in this action.
 * Create your succes handler. This should be hooked to ‘continue_with_vipps__your
   action_‘. It will receive an array of user information from Vipps MobilePay, 
   and a live session. This handler too should end with a redirect to your success
   page.

The rest is a simple matter of programming.

## Capturas

[⌊Retrieving your Client ID and Client Secret from the Vipps MobilePay Portal⌉⌊Retrieving
your Client ID and Client Secret from the Vipps MobilePay Portal⌉[

Retrieving your Client ID and Client Secret from the [Vipps MobilePay Portal](https://portal.vippsmobilepay.com)

[⌊Registerering your redirect URI⌉⌊Registerering your redirect URI⌉[

Registerering your redirect URI

[⌊Activating Login with Vipps and MobilePay at the Vipps MobilePay Portal⌉⌊Activating
Login with Vipps and MobilePay at the Vipps MobilePay Portal⌉[

Activating Login with Vipps and MobilePay at the [Vipps MobilePay Portal](https://portal.vippsmobilepay.com)

## Blocks

Este plugin proporciona 1 bloque.

 *   Login with Vipps/MobilePay-button

## Instalación

**If you are an existing Vipps MobilePay customer**, log onto the Vipps MobilePay
portal https://portal.vippsmobilepay.com and retreive your API keys that you will
need to install Login with Vipps MobilePay

**If you are a new Vipps MobilePay customer**, apply for an account [here](https://vippsmobilepay.com/no/priser/logg-inn)–
before downloading the plugin. Choose “Integration through your partner”, or if 
you don’t know your partner, choose “direct integration” and fill out the form. 
When your application is approved, you will receive the API keys that you will need
to install the plugin.

 1. Install the plugin using WordPress’ [built-in installer](https://codex.wordpress.org/Managing_Plugins#Installing_Plugins).
    The plugin can also be installed manually by upload the plugin files to the /wp-
    content/plugins/ directory.
 2. Activate the plugin through the \’Plugins\’ screen in WordPress.
 3. From the [Vipps MobilePay portal](https://portal.vippsmobilepay.com), get your 
    Client ID and Client Secret and add them to the Settings-page for this plugin (
    see screenshot 1)
 4. Note your callback URL from the plugins settings-page and add that to the Vipps
    MobilePay Portal (see screenshot 2)
 5. Modify the options as needed

## Comentarios

![](https://secure.gravatar.com/avatar/4c99317a5af6544966b9046cc2b599aec3b77ca9c65a074f2aebaebc11ac44f6?
s=60&d=retro&r=g)

### 󠀁[No longer a free service (august 1st 2024)](https://wordpress.org/support/topic/no-longer-a-free-service-august-1st-2024/)󠁿

 [Øyvind](https://profiles.wordpress.org/okrage/) 25 de Abril, 2024

Unfortunaly Vipps LogIn will no longer be a free service from august 1st 2024. Vipps
login will have different prices based on number of active users (Logged in the 
last 12 months) and how much metadat you want from Vipps: Examples:Basic 0-1000 
active users: from NOK 300/monthPremium 1000-10000 active users: from NOK 1000/month
Advanced 10000-50000 active users: from NOK 6000/monthYou can find a full overview
of their prices on vippsmobilepay(dot)com Its such a shame.

![](https://secure.gravatar.com/avatar/3efabaabb8046ae654b731efffd8122f6106d54f55c057e1348e5a60c23b7a90?
s=60&d=retro&r=g)

### 󠀁[Excellent plugin for Norwegian sites](https://wordpress.org/support/topic/excellent-plugin-for-norwegian-sites/)󠁿

 [oslobakingbrit](https://profiles.wordpress.org/oslobakingbrit/) 25 de Xuño, 2021

If you live in Norway, then you already know what Vipps is, and how widely used 
it is. If your company has a Vipps number or any other business agreement with Vipps,
then this plugin is just brilliant for websites where you want to make life easier
for your returning customers. I was so relieved by how easy it was to use, after
reading the technical documentation provided by Vipps. Five stars, hands down, and
a big Thank You to the developer of this plugin. In my case, I have a small webshop
run on WooCommerce. I ticked the relevant boxes in the WooCommerce settings to allow
customers to register themselves on my website, then installed this plugin. I registered
with Vipps. They responded quickly, and I got the necessary API Keys for production
environment (i.e. for real life use) in just 2 days. Top tip: ignore all the technical
stuff you get when you are welcomed into the test environment by Vipps. Just sit
and wait for the production environment API keys. The plugin has done all the hard
work for you. When you get an e-mail confirming your API keys for production environment
are available, simply copy-paste the relevant details into the fields requested 
from the plugin, then copy the URL clearly provided in the plugin pages to the relevant
field on the Vipps website (see plugin installation guide). That’s it! Go to your“
Account” page (you might need to provide a link on a menu). Above the “login” or“
register” sections, is a nice Vipps banner inviting your customers to log in or 
register. I don’t request date of birth when customers normally register (don’t 
need to), and this is not provided by Vipps to my site either. Great! Absolutely
magical. I’m tech savvy but not a developer. This plugin is just brilliant. Three
copy-paste steps, tick off a couple of checkboxes and customers can immediately 
register themselves. Just remember to update your GDPR statement. No annoying banners
with pushy advertising, it’s free and it’s very smooth. Brilliant, brilliant app
that makes life for me and my customers easier. Highly recommended.

![](https://secure.gravatar.com/avatar/cdb3a71c7d3b573e785be1f3d536600567b7dbd07d239c3a7e6c592451e53260?
s=60&d=retro&r=g)

### 󠀁[Topp](https://wordpress.org/support/topic/topp-5/)󠁿

 [Sondre Dyrnes](https://profiles.wordpress.org/sondreal/) 15 de Outubro, 2020

Fungerer ypperlig.

![](https://secure.gravatar.com/avatar/6972b9b2dab34bf03d0700819d7f9083c88166f59659ab90b5217b517c53f818?
s=60&d=retro&r=g)

### 󠀁[Fantastic login experience](https://wordpress.org/support/topic/fantastic-login-experience/)󠁿

 [lykkelig](https://profiles.wordpress.org/lykkelig/) 6 de Febreiro, 2020

Works very well, is simple to set up and adds so much value to a website with member
logins. Thanks for making this!

 [ Ler todas as 3 opinións ](https://wordpress.org/support/plugin/login-with-vipps/reviews/)

## Colaboradores e desenvolvedores

“Login with Vipps and MobilePay” é un software de código aberto. As seguintes persoas
colaboraron con este plugin.

Colaboradores

 *   [ WP Hosting AS ](https://profiles.wordpress.org/wphostingdev/)
 *   [ Iver Odin Kvello ](https://profiles.wordpress.org/iverok/)
 *   [ click ](https://profiles.wordpress.org/perwilhelmsen/)
 *   [ nikolaidev ](https://profiles.wordpress.org/nikolaidev/)
 *   [ Lasse Pladsen ](https://profiles.wordpress.org/lassepladsen/)

“Login with Vipps and MobilePay” foi traducido a 3 idiomas. Grazas [aos desenvolvedores](https://translate.wordpress.org/projects/wp-plugins/login-with-vipps/contributors)
polas súas contribucións.

[Traduce “Login with Vipps and MobilePay” ao teu idioma.](https://translate.wordpress.org/projects/wp-plugins/login-with-vipps)

### Interesado no desenvolvemento?

[Revisa o código](https://plugins.trac.wordpress.org/browser/login-with-vipps/),
bota unha ollada ao[repositorio SVN](https://plugins.svn.wordpress.org/login-with-vipps/),
ou subscríbete ao [log de desenvolvemento](https://plugins.trac.wordpress.org/log/login-with-vipps/)
por [RSS](https://plugins.trac.wordpress.org/log/login-with-vipps/?limit=100&mode=stop_on_copy&format=rss).

## Rexistro de cambios

#### 2026.06.02 Version 1.4.2

Bump WP version tested up to 7.0
 Fix: missing logo in certain banners for themes
without Font Awesome

#### 2026.03.19 Version 1.4.1

Fix typo that would lead to a crash in certain error conditions. Thanks to Øystein
Østre @ maksimer for reporting

#### 2026.03.02 Version 1.4.0

Blocks updated to version 3.0 to be compatible with the new iframe-based editor

Implementation of block changed to use standard Vipps MobilePay web component buttons
Settings-menu moved to the main Vipps MobilePay menu if available (legacy page still
present)

#### 2024.12.23 Version 1.3.5

Fix wrong variable name in login filter

#### 2024.12.02 Version 1.3.5

The login-block is updated to the latest Block API.

#### 2024.11.26 Version 1.3.4

This version fixes a vulnerability in the shortcodes where it would be possible 
for an editor to add stored javascript that would run when the button was pressed.
Thanks to Peter Thaleikis for reporting.

#### 2024.05.02 Version 1.3.3

Text domain fix for 6.7 compatibility

#### 2024.08.27 Version 1.3.2

Fix bugs that stopped admins from disconnecting users’ accounts

#### 2024.05.08 Version 1.3.1

Add filter to allow for the ‘remember user’ extended cookie length

#### 2024.05.02 Version 1.3.0

Support Mobilepay, improve settings

#### 2024.03.21 Version 1.2.8

Send debugging headers to Vipps MobilePay
 Updating blocks and css

#### 2023.11.28 Version 1.2.7

Fix some 8.2 deprecations

#### 2023.05.15 Version 1.2.6

Small bugfixes, removal on some restrictions to aid implementation of non-login 
applications

#### 2023.03.27 Version 1.2.5

#### 2023.02.08 Version 1.2.4

 * Add filter for the error message when the user is invalid

#### 2023.01.09 Version 1.2.3

 * Fix deprection warning under php8.1

#### 2022.10.27 Version 1.2.3

 * Fix compatibility with 7.4

#### 2022.10.26 Version 1.2.2

 * Testing for 6.1.0

#### 2022.06.13 Version 1.2.1

 * Small fix for Gutenberg blocks

#### 2022.04.25 Version 1.2.0

 * Add support for using the phone number as Vipps MobilePay ID for users
 * Removes old “verify your email account” code as it was not future-proof. Filters
   allow developers to reimplement this if neccessary
 * Fix CSS to be more independent of certain themes

#### 2022.03.18 Version 1.1.21

 * Removed the api_version_2 scope

#### 2022.01.28 Version 1.1.20

 * Add filter `login_with_vipps_openid_scope ( $scope, $action, $sessiondata)` to
   allow developers to ask for e.g. birthDate. The filter will always receive an
   array.

#### 2021.12.20 Version 1.1.19

 * Fix COOKIEPATH on multisite installs where it isn’t set.

#### 2021.12.13 Version 1.1.18

 * Made ‘login_with_vipps_woo_login_redirect’ get access to the login session
 * Created a javascript hook for people customizing login

#### 2021.12.09 Version 1.1.17

 * Add suppression of more than one call to the login process

#### 2021.12.01 Version 1.1.16

 * For some reason, a bug where the blogversion was _outputed_ didn’t kick in on
   our systems, but broke login for some users. This version restores normal operations.

#### 2021.11.18 Version 1.1.15

 * Versioning headers sent to Vipps MobilePay to aid debugging

#### 2021.11.10 Version 1.1.14

 * Slight improvement in programmability of the login function for those who want
   to extend the plugin

#### 2021.10.04 Version 1.1.13

 * Improved texts for how to use the plugin

#### 2021.09.05 Version 1.1.12

 * Improved support for WPML
 * Support for running against Vipps MobilePay’ test/dev server using filters

#### 2021.06.16 Version 1.1.11

 * CSS Tweaks

#### 2021.06.09 Version 1.1.10

 * Testing for WP 5.8

#### 2021.05.31 Version 1.1.9

 * Get-started banner for users that have not completed configuration
 * Remove the old ‘verify email account feature’

#### 2021.04.27 Version 1.1.8

 * Fix the email confirmations – this will be removed in a future version however

#### 2021.04.26 Version 1.1.7

 * Ensure the ‘woocommerce_created_customer’ hook is called correctly when registering
   on WooCommerce – this fixes the bug where user registration emails weren’t sent.

#### 2021.04.19 Version 1.1.6

 * Tested for latest versions of WP and Woo

#### 2021.03.23 Version 1.1.5

 * Handle deprecation of the ‘sid’ field of the userinfo

#### 2021.03.22 Version 1.1.4

 * Bugfix

#### 2021.03.01 Version 1.1.3

 * Bugfix

#### 2021.01.18 Version 1.1.2

 * Supports _requiring_ certain users, roles or everybody to use Vipps MobilePay
   to log in or to confirm their login

#### 2020.12.30 Version 1.1.1

 * Fix bug causing output when WP_DEBUG is on. Thanks to @horgster on wp.org for
   reporting.

#### 2020.12.21 Version 1.1.0

 * Now uses version 2 of the Vipps MobilePay Login Api and provides a Gutenberg 
   block for a “Login with Vipps/MobilePay” button

#### 2020.12.14 Version 1.0.13

 * Versions tested on WP 5.6 and WC 4.8.0

#### 2020.11.24 Version 1.0.12

 * Version tested on WP 5.5.3 and WC 4.7.0

#### 2020.10.19 Version 1.0.11

 * If activated when Checkout with Vipps MobilePay for WooCommerce is installed,
   configure that plugin to create users when using Express Checkout

#### 2020.09.28 Version 1.0.10

 * Make new Woo accounts created by Vipps MobilePay login count as “Authorized” 
   for All-in-one WP security; improved configuration options

#### 2020.06.29 Version 1.0.9

 * Fixed misspelled shortcode name, version update

#### 2020.06.07 Version 1.0.8

 * Made user confirmation optional and off by default, since this is now handled
   by Vipps MobilePay

#### 2019.12.06 Version 1.0.7

 * Stylesheet fixes

#### 2019.12.06 Version 1.0.6

 * Added a filter ‘login_with_vipps_update_address_info’ which returns whether or
   not to update the address info for a user. Takes the current truth value, the
   customer object, and userinfo from Vipp MobilePays.

#### 2019.12.06 Version 1.0.5

 * Added a 30s leeway to the JWT verifier, and made it so logging will go to the
   system log for Woo installations as well

#### 2019.12.06 Version 1.0.4

 * Conflicts with certain plugins that check for ‘code’ and ‘state’ in the parse_request
   hook fixed by deleting these if we are handling Vipps MobilePay returns

#### 2019.12.06 Version 1.0.3

 * Change named of session key, to be compatible out-of-the-box with wpengine. Thanks
   to Sondre @ NattogDag for help with debugging
 * Added convenience filters ‘login_with_vipps_woo_error_redirect’ and ‘login_with_vipps_woo_login_redirect’
   to handle redirects on error and success for WooCommerce in particular

#### 2019.12.06 Version 1.0.2

 * Made account title filter more forgiving

#### 2019.11.29 Version 1.0.1

#### 1.0

v1.0.0 First release

## Meta

 *  Versión **1.4.2**
 *  Última actualización **Fai 6 días**
 *  Instalacións activas **900+**
 *  Versión de WordPress ** 6.1.0 ou superior **
 *  Probado ata **7.0**
 *  Versión de PHP ** 7.2 ou superior **
 *  Idiomas
 * [Danish](https://da.wordpress.org/plugins/login-with-vipps/), [English (US)](https://wordpress.org/plugins/login-with-vipps/),
   [Finnish](https://fi.wordpress.org/plugins/login-with-vipps/), e [Norwegian (Bokmål)](https://nb.wordpress.org/plugins/login-with-vipps/).
 *  [Traduce ao teu idioma](https://translate.wordpress.org/projects/wp-plugins/login-with-vipps)
 * Etiquetas
 * [login](https://gl.wordpress.org/plugins/tags/login/)[mobilepay](https://gl.wordpress.org/plugins/tags/mobilepay/)
   [vipps](https://gl.wordpress.org/plugins/tags/vipps/)[woocommerce](https://gl.wordpress.org/plugins/tags/woocommerce/)
 *  [Vista avanzada](https://gl.wordpress.org/plugins/login-with-vipps/advanced/)

## Valoracións

 5 de 5 estrelas

 *  [  4 valoracións de 5 estrelas     ](https://wordpress.org/support/plugin/login-with-vipps/reviews/?filter=5)
 *  [  0 valoracións de 4 estrelas     ](https://wordpress.org/support/plugin/login-with-vipps/reviews/?filter=4)
 *  [  0 valoracións de 3 estrelas     ](https://wordpress.org/support/plugin/login-with-vipps/reviews/?filter=3)
 *  [  0 valoracións de 2 estrelas     ](https://wordpress.org/support/plugin/login-with-vipps/reviews/?filter=2)
 *  [  0 valoracións de 1 estrelas     ](https://wordpress.org/support/plugin/login-with-vipps/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/login-with-vipps/reviews/#new-post)

[Ver todas as valoracións](https://wordpress.org/support/plugin/login-with-vipps/reviews/)

## Colaboradores

 *   [ WP Hosting AS ](https://profiles.wordpress.org/wphostingdev/)
 *   [ Iver Odin Kvello ](https://profiles.wordpress.org/iverok/)
 *   [ click ](https://profiles.wordpress.org/perwilhelmsen/)
 *   [ nikolaidev ](https://profiles.wordpress.org/nikolaidev/)
 *   [ Lasse Pladsen ](https://profiles.wordpress.org/lassepladsen/)

## Soporte

Problemas resoltos nos últimos dous meses:

     0 de 1

 [Ver o foro de soporte](https://wordpress.org/support/plugin/login-with-vipps/)