OpenID Connect checklist

 In case you get an error message when going through the OpenID Flow the checklist below might be beneficial for you. The checklist assumes that you have read the documentation and that you've followed our recommendation on how to send the requests. If you haven't done so, please read it here 

You need to check the following, to ensure you will successfully implement OpenID Connect

Redirect URI 


Whitelisted Redirect URI:

Have you used a redirect URI that has been whitelisted at MobilePay? You can only use the redirect URI that has been whitelisted. If it has not been whitelisted, you should write to developer@mobilepay.dk in order for it to be whitelisted. You cannot use an Redirect URI that hasn’t been whitelisted by us. 

Is the redirect URI a Https?:

Is the redirect URI https? It should always be https (unless it is local host) otherwise you'll receive an error message

Do you use the same Redirect URI

The URL’s need to be both on authorize https://sandprod-admin.mobilepay.dk/account/connect/authorize? and token requests  https://api.sandbox.mobilepay.dk/merchant-authentication-openidconnect/connect/token?

Parameters


Right ClientSecret and clientID

are you using the clientID and ClientSecret from the zip file when getting/renewing access token? you should not use the ClientID from the developer portal when doing your OpenID Connect requests 

Right Scope 

are you using the right scope? you should use  invoice openid offline_access and if you're integrating MobilePay Subscriptions, you should use subscriptions openid offline_access 

Is the Code Challenge correct?

 The code challenge must be within these requirements:

  • CodeChallengeMinLength = 43
  • CodeChallengeMaxLength = 128

You can see more about the code challenge here


 

 

...no luck? If that doesn't help you, please send us a report, as demonstrated here