In this section, you can find information on testing in sandbox, as well as how to get test data. The MobilePay Sandbox is a self-contained, testing environment that mimics the live MobilePay production environment. To ensure a good user experience, we recommend you to test your solution thoroughly before launching.
The sandbox environment can be found here: https://sandbox-developer.mobilepay.dk/

As PSP, you can now initiate a MobilePay Online payment against our Sandprod environment.
- Create a test merchant by calling:
POST /api/v1/merchants
- Initiate a payment by calling:
POST /api/v1/payments
Receive redirectToMobilePayUrl in response - Open redirectToMobilePayUrl in a browser to access MobiePay landing page (or from an app). On the landing page enter the test phone number you have received. In production you would now get a notification on your phone, but this is not yet working in sandbox
- Login to the app using your test credentials (see below section about test app)
- You should automatically see a confirmation page for the payment
- Swipe to approve
- Receive cardDataCallback end decrypt this. In production you will call the aquire at this point.
- Update authorization attempt with succeeded true or false by calling:
PATCH /api/v1/payments/{paymentId}/authorizationattempts/{authorizationAttemptId}
- Create capture by calling:
POST /api/v1/payments/{paymentId}/captures
In order to complete a payment flow in the sandprod environment, a test version of the MobilePay app is available. This version of the MobilePay app is similar to the live version, but only supports payments in the sandprod environment.
To install, you will have to allow installation from “unknown sources”.
MobilePay DK Sandbox app
MobilePay FI Sandbox app
iOS
iOS MobilePay Sandbox app is available through Apple TestFlight. Therefore Apple TestFlight must be installed to the device. Using below link on a mobile device will initiate download of and registration to TestFlight. No prior registration or invitation needed.
Log on to test app
- Install and open the MobilePay DK/FI Vendor app
- Select "Log på (Eksisterende bruger)" / "Kirjaudu sovellukseen / "Log on (existing user)"
- Enter a valid Sandbox phone number (see below section about test users)
- Enter SSN (Only relevant on fresh install)
- Denmark CPR no.: 000000-0000
- Finland henkilötunnus: 00000000000
- Enter PIN: “1234”
- Enter activation code: “123456” and press "OK" / "Jatka"
Android iOS
To complete a payment flow in the sandprod environment you will need to make user actions. We have made an API that can mimick the actions of a user. You find it in the API overview: Choose 'Online User Simulation'
With the API simulate user behavior:
1) User enter phone number for payment.
2) User selects the first eligible card for payment.
3) User swipes to accept payment.
You must subscribe to the User simulation API before you can use it. When calling the API, you must supply:
Input | Source |
Header: x-ibm- client-id | From the developer portal |
Header: x-ibm-client-secret | From the developer portal |
Phonenumber | Received during techincal onboarding. Please contact Developer Support if you do not have a test user |
LastFourDigits | Optional. Last for digit of the decired payment card to be used. These can be found in the test app or by contacting Developer Support. If not defined the first eligible card will be used |
How to use the User simulation API:
- Initiate a payment:
POST /api/v3/payments
- Accept the payment:
POST /api/v1/product/payments/simulation/enter-phone-and-swipe/{paymentId}
Through the technical onboarding you will receive a sandbox test user. If you have not yet received one, please contact developer@mobilepay.dk to request a test user. The test user is assigned to your integration and not shared with others.
If you experience any issues with the test user, please contact developer@mobilepay.dk
Review our documentation on Github using the link below. Here you find extended technical documentation

You need to go through a small verification when moving from sandprod til hidden production, and before going live to ensure that your setup is ready.
