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:
| Country | Accepted formats |
|---|---|
| Denmark | 12345678, +4512345678 or 004512345678 |
| Finland | 0401234567, +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 apartSet
order.billing_address.countrytoDKorFI. 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.