Title: Error: invalid_client
Last modified: February 27, 2022

---

# Error: invalid_client

 *  [wadeqos](https://wordpress.org/support/users/wadeqos/)
 * (@wadeqos)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-invalid_client-6/)
 * The redirect-URI is setuped same as in plugin information
    _[https://www.sporten.com/wp-vipps-login/continue-from-vipps/](https://www.sporten.com/wp-vipps-login/continue-from-vipps/)_
   I have this in my function.php. _apply\_filters(‘login\_with\_vipps\_test\_mode’,
   true);_ I have tested api on postman and it works. But I’ve noticed that the 
   request URL starts from [https://api.vipps.no/](https://api.vipps.no/) instead
   [https://apitest.vipps.no](https://apitest.vipps.no)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-invalid_client-6%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Iver Odin Kvello](https://wordpress.org/support/users/iverok/)
 * (@iverok)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-invalid_client-6/#post-15411978)
 * You need to add this to your functions.php file instead:
 *     ```
       add_filter('login_with_vipps_test_mode', function ($true) {
         return true;
       });
       ```
   
 * Same with “`login_with_vipps_test_clientid`” and “`login_with_vipps_test_clientsecret`”
   if you want to have separate keys for test mode.
 * – this will turn test mode on. Remember to remove this before going live.
 * Is there a reason you prefer to test login in the dev environment instead of 
   the live one? There is no commercial activity with login, and all who are going
   to test is going to have to install the test app using testflight etc.
 *  Thread Starter [wadeqos](https://wordpress.org/support/users/wadeqos/)
 * (@wadeqos)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-invalid_client-6/#post-15413602)
 * Hi, it’s works. So better is to switch to the live one. Ok we will do it. I didn’t
   know that. I’m just implementing this plugin.
    Thaks it’s works any way.
 *  Thread Starter [wadeqos](https://wordpress.org/support/users/wadeqos/)
 * (@wadeqos)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-invalid_client-6/#post-15413615)
 * One more question. You have mentioned that the login option is not commercial.
   But what about requiring payment is it not connected with login ?
    [https://github.com/vippsas/vipps-login-api/blob/master/vipps-login-recurring-howitworks.md](https://github.com/vippsas/vipps-login-api/blob/master/vipps-login-recurring-howitworks.md)
 *  Plugin Author [Iver Odin Kvello](https://wordpress.org/support/users/iverok/)
 * (@iverok)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-invalid_client-6/#post-15414146)
 * They are all separate plugins. The login plugin can be used also with no ecommerce
   installed.
 * My note about the login-plugin is just that as it is free to use the live version,
   there is usually no need to use the dev environment for testing (no money changes
   hands in any case). You may have other reasons to use the dev environment of 
   course.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Error: invalid_client’ is closed to new replies.

 * ![](https://ps.w.org/login-with-vipps/assets/icon-128x128.png?rev=3080150)
 * [Login with Vipps and MobilePay](https://wordpress.org/plugins/login-with-vipps/)
 * [Support Threads](https://wordpress.org/support/plugin/login-with-vipps/)
 * [Active Topics](https://wordpress.org/support/plugin/login-with-vipps/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/login-with-vipps/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/login-with-vipps/reviews/)

## Tags

 * [Vipps](https://wordpress.org/support/topic-tag/vipps/)

 * 4 replies
 * 2 participants
 * Last reply from: [Iver Odin Kvello](https://wordpress.org/support/users/iverok/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/error-invalid_client-6/#post-15414146)
 * Status: not resolved