Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Iver Odin Kvello

    (@iverok)

    Did you enable the Login api for the keys you are using? This has to be done in the Vipps Portal, where you also have to enter the return URL which needs to be on a verified shortlist.

    NB: you should also check very carefully for spelling errors in the setting.

    Thread Starter DamirCalusic

    (@webkreativ)

    Hi Iver,

    Where do you mean I should activate Vipps Login API. I can confirm that ApI keys are there for TEST environment and they work for checkout with VIPPS MT.

    I can enter the Redirection URL properly aswell in the VIPPS settings for “Vipps login” in admin aswell.

    So is there anywhere else I need to activate Vipps Login in VIPPS Admin? If so could you send a printscreen maybe on where does settings could be?

    Otherwise everything looks good in VIPPS Admin Portal. I see we have eveyrthing activated here:

    • This reply was modified 1 year, 2 months ago by DamirCalusic.
    Plugin Author Iver Odin Kvello

    (@iverok)

    In the Vipps portal, on the developer/utvikler page, you need to find the keys you are using and press “Setup login”. You then need to select “Activate Vipps Login” and configure the return url as per the documentation.

    Thread Starter DamirCalusic

    (@webkreativ)

    I have done those steps. As you can see in the prinstscreen I pasted in. It saves properly and the redirect URL is in place.

    Is there anything else we need to do here?

    Plugin Author Iver Odin Kvello

    (@iverok)

    I see you are using a set of keys in the test environment, so if that is intentional, yes, there is another step.

    Login with Vipps in WordPress does not support using test keys out of the box (since there is no payment here, you would normally use only live keys for Login). If you need to do it for whatever reason, you need to use this filter:

    add_filter('login_with_vipps_test_mode', function ($yes) {
    return true;
    });

    If you want to use a separate keys for test mode and live mode, you can also use the filters 'login_with_vipps_test_clientid' and 'login_with_vipps_test_clientsecret'.

    The reason you are getting “invalid_client” is probably that the client is valid only for the test environment.

    Thread Starter DamirCalusic

    (@webkreativ)

    Yes that was the problem with this… Test accounts was not permitted. The invalid_client problem vanished after changing to live keys. Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘invalid_client for login but checkout works’ is closed to new replies.