Client authentication failed e.g. unknown client no client authentication included or unsupported authentication method. The requested OAuth 2.0 Client does not exist.
The checkout process works perfectly with the client_id and client_secret in admin but when I am trying to setup the Login process it does not work.
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.
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.
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.
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.