vippsas / vipps-developers

Please see: Vipps MobilePay Technical Documentation: https://developer.vippsmobilepay.com

Home Page:https://developer.vippsmobilepay.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test phone number works for payments API but not login

pdewouters opened this issue · comments

Hi

When I submit the phone number on the login screen, it shows the error "To log in with Vipps you need to have Vipps on your phone and be at least 15 years old." , the POST request is sent to https://api.vipps.no/vipps-login-idp/fetch-api/login

In the FAQ, it says that error happens if using a real user in the test environment, but that isn't the case, and it works with payments.

Any idea how to fix this issue?

Thanks

Hi!

The test users should work for all APIs in the test environment.

Will check and update here ASAP.

Hi again

You say that you are using the test environment, but it looks like you are using api.vipps.no, which is the production environment.

Are you sure you are not mixing the users and environments?

See https://github.com/vippsas/vipps-developers/blob/master/vipps-test-environment.md

Thanks - I've had help from the Vipps support, works great now!
Main issue was that I was using the WordPress plugin without setting it to test mode, so it was hitting the prod API domain with the test user