Skip to content

Technical documentation on how to implement MobilePay AppSwitch SDK

License

Notifications You must be signed in to change notification settings

MobilePayDev/MobilePay-AppSwitch-SDK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MobilePay AppSwitch SDK

IMPORTANT: AppSwitch is no longer in use and won't be available again.

The MobilePay SDK enables your app to receive payments through the MobilePay app.

How it works

  1. You initiate the payment from your own app through the SDK.

  2. It automatically switches to the MobilePay App where the user is asked to sign in.

  3. The user confirms the payment.

  4. The receipt is shown and the user can either tap "videre" or wait one second. A counter is showing the time remaining.

  5. MobilePay switches back to your own app together with a MobilePay transactionId.

Recommendations

  • Check out MobilePay AppSwitch documentation on github.
  • Make sure you generate unique order ID’s, otherwise calling Refund endpoint can cause trouble.
  • Make sure you do polling on payment status on your backend and do not rely on getting the response from MobilePay through the SDK. If your backend get a status ‘Reserved’ – the user has swiped and the order can be completed and payment can be captured though the MobilePay AppSwitch API.
  • Use App code obfuscasion to make it more difficult to do reverse-engineering.
  • Make sure you do backend validation of the reservation details from the app, e.g. the amount.
  • Testing must be done in production with real money, however you can do testing in the SDK from the app by using a test merchant id to get started.

Latest SDK Version

Latest version is 2.2.1 for Android and 2.3.0 for iOS. See the release notes here

Support

For technical questions about the MobilePay AppSwitch SDK or other related questions, please contact us via e-mail at [email protected]

Requirements

Please look at the MobilePay Developer Portal for further details MobilePay Developer Portal

MerchantID for test purposes

The MerchantID for testing depends on which country you are targeting. The following IDs can be used:

APPDK0000000000 - Denmark

APPFI0000000000 - Finland

When the test MerchantID is used you are able to complete the payment flow from a user perspective without transferring any money.

Cross-platform

Please look at the wiki page for further details wiki site

Documentation