MobilePay Online

Prefill the customer's phone number and set a minimum age for MobilePay Online payments.

MobilePay Online lets the customer pay with the MobilePay app. You can make checkout faster by
sending the customer's phone number when you create the payment.

Prefilling the phone number

Send the customer's phone number in order.billing_address.mobile_number. MobilePay then fills
it in for the customer, so they only have to approve the payment in the app.

{
  "amount": 1200,
  "currency": "DKK",
  "order_id": "1234",
  "methods": ["mobilepay"],
  "order": {
    "billing_address": {
      "mobile_number": "12345678",
      "country": "DK"
    }
  }
}

order.billing_address.phone_number is also accepted. Send the number in only one of the two
fields.

MobilePay supports Danish and Finnish phone numbers:

CountryAccepted formats
Denmark12345678, +4512345678 or 004512345678
Finland0401234567, +358401234567 or 00358401234567

Spaces and dashes are ignored. A number in another format is not prefilled, and the customer
enters it in MobilePay instead.

📘

Help us tell Danish and Finnish numbers apart

Set order.billing_address.country to DK or FI. A number without a country code is then
read as a number from that country, and MobilePay is shown in Danish or Finnish.

Minimum age

To make sure the customer is old enough, set payer_min_age when you create the payment.
MobilePay only lets customers who are at least that age complete the payment.