Step 1. Invoice Getting Started

This guide is designed to help get you started with MobilePay Invoice.

You will be starting off in the Sandbox. Its purpose is to give developers a shielded environment for testing and integration purposes. Sandboxes are isolated from your production organization and give you the possibility to explore the API Platform.

Set-up
- Common standard
You need to implement handling of OpenID Connect, but OpenID Connect is a common standard. You can find links to the official Hybrid Flow here
- Additional endpoint 
You do not need additional services hosted. What you need is an additional endpoint in your service, that will handle a redirect from our system with AuthCode, after the merchant grants access to your app. You need to provide your own Redirect URL, because otherwise OAuth won't work in your servers. In order to be secure, the redirect URL must be an https. Read more about the RedirectURL here.
- Call our authorization server
You only need to do additional calls to our authorization server, to get access token and refresh token. When you have the token, you will use it in every request to the Invoice API. Read more about this in the following.

Step 1 - Register


  1. All merchants should order the product needed on the MobilePay portal here   (If you are a Third Party integrator, follow the process described here)
    1. Sign up as an integrator here 
    2. Sign certification agreement 
  2. Take a look at the API documentation. You'll find it in the APIs menu.
  3. You should already have received an email with an invitation to our Sandbox environment.
  4. Go to sandbox-developer.mobilepay.dk and log in with your credentials.
  5. Next you select your account > My Apps > Create new App to register a new application.
    1. IMPORTANT: Please make a note of your Client Secret as you will only see this once!


You should always store the Client Secret in a secure location, and never reveal it publicly. If you suspect that the secret key has been compromised, you may reset it immediately by clicking the link on the application details page.

Step 2 - Subscribe to APIs


To implement MobilePay Invoice, go to APIs and subscribe to the following APIs:

    • Invoice
    • Invoice User Simulation

    From the API-page you're able to call the api and get the appropiate responses

    Step 3 - Authentication


     Once you have obtained credentials via zip file, set a redirect URI and received test data, you can start implementing the OpenID Connect flow. Read more about OpenID Connect and the process here.

    Currently, our network utilizes the global IP range 212.93.32.0/19.

      As an external party, you might need to modify your firewall rules to allow traffic from us from 212.93.32.0/19 and 185.218.228.0/22 instead. Otherwise our traffic may be blocked, and our services stop working.

    OpenID Connect

    Once you've obtained credentials via zip file, set a redirect URI and received testdata, you can start implementing the OpenID Connect flow. Read more about OpenID Connect and the process