Embed buttons in your code

To implement the buttons you need to add a tiny bit of script and style to your page. And then a special div tag, where you want the buttons.
See the source code for this page to copy the few needed elements.

The div-tag looks like this:
<div class="class def." onclick="onclick function" id="myId1" data-theme="theme def" data-size="size def" data-language="language def." >MobilePay</div>

e.g. <div class="mobilepay-button mobilepay-button-std" onclick="mp_mobilepay(this);" id="myId" data-theme="mpblue" data-size="medium" data-language="da-dk" >MobilePay</div>

Live examples

MobilePay


Pay with MobilePay


MobilePay Checkout


Requirements

Chrome latest version, Firefox latest version, Edge latest version or IE9 or later.

Parameters

Parameter Required Values
class Yes MobilePay: mobilepay-button mobilepay-button-std
Pay with MobilePay: mobilepay-button mobilepay-button-paywith
MobilePay Checkout: mobilepay-button mobilepay-button-checkout
onclick Yes mp_mobilepay(this);   (default)
yourOwnFunction();
data-theme No mpblue (default)
darkblue
whitestroke
white
data-size No small
medium (default)
large
data-language No en-uk (default)
da-dk
fi-fi
sv-se
nb-no

Only "Pay with" buttons are supported in all languages.

Methods

Name Description
mp_mobilepayDisablebutton([button elemment]) To disable the button
mp_mobilepayEnablebutton([button elemment]) To enable the button