• Resolved jdkoch

    (@jdkoch)


    Hi! We’d like to use Vipps’ test-environment (MT) when testing this plugin.
    We’ve copied the API test-keys from the Vipps Developer Portal, and set up Login with the correct Redirect URI.
    However, when we try to log in, we get a Vipps error page with an invalid_client error.

    Questions:

    • Does the WordPress plugin support using the MT environment?
    • If yes, do we need to do anything additional to use it?
    • If it should be working, could you help us figure out the problem?
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Iver Odin Kvello

    (@iverok)

    It does, but you do need to add some hooks and filters to be able to use it, specifically these:

    Return true from this:
    apply_filters('login_with_vipps_test_mode', false);

    Return your test clientid here if different from the configured one:
    apply_filters('login_with_vipps_test_clientid', $clientid);

    Return your test secret here if different from the configured one:
    apply_filters('login_with_vipps_test_clientsecret', $secret);

    If you’ve set up your config with your test client data, you only need to override the first one. If you want to effectively test both live and dev environments, you may want to override the last ones too.

    Thread Starter jdkoch

    (@jdkoch)

    Thanks for the reply, that worked perfectly!

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

The topic ‘Using Vipps MT (test-environment)’ is closed to new replies.