Skip to content

Error handling

Duy Thien Van edited this page Dec 20, 2018 · 3 revisions

Callback Error codes

If the MobilePay payment flow fails an error code is returned to your App.

Error code Description
1 Invalid parameters sent to MobilePay app.
2 VerifyMerchant request failed - validation af merchant failed.
3 MobilePay app is out of date and must be updated.
4 Merchant is not valid.
5 HMAC parameter is not valid.
6 MobilePay timeout. The purchase took more than 5 minutes.
7 MobilePay amount limits exceeded. Open MobilePay 'Beløbsgrænser' to see your status.
8 Timeout set in merchant app exceeded.
9 Invalid signature. This means that the payment is invalid - it has not been signed by MobilePay.
10 MobilePay SDK version is outdated.
11 The given OrderId is already used. An OrderId has to be unique.
12 Error related to the MobilePay user.

These error codes are valid for version 1.6.2, and higher, of the SDK.

Most of there errors are technical errors (1,2,4,5,9,10,11,12) that must be presented as a generic error message without details to the user, where others should be handled by your app (3,6,7,8) to guide the user in the right direction.