Skip to content

If your business have a mobile app. You can use this SDK to integrate your mobile with MoMo App

Notifications You must be signed in to change notification settings

tamdragle/mobile-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mobile-sdk

If your business have a mobile app. You can use this SDK to integrate MoMo app into your app.

iOS App

STEP 1: Config file Plist (CFBundleURLTypes and LSApplicationQueriesSchemes)

<key>CFBundleURLTypes</key>
<array>
  <dict>
    <key>CFBundleURLName</key>
    <string></string>
    <key>CFBundleURLSchemes</key>
    <array>
      <string>partnerSchemeId</string>
    </array>
  </dict>
</array>
<key>LSApplicationQueriesSchemes</key>
<array>
  <string>momo</string>
</array>
<key>NSAppTransportSecurity</key>
<dict>
  <key>NSAllowsArbitraryLoads</key>
  <true/>
</dict>
  • CFBundleURLTypes: add scheme . Note: partnerSchemeId provided by MoMo , get from business.momo.vn
  • LSApplicationQueriesSchemes: add scheme "momo"

STEP 2: Your Button CTA / Open MoMo app. Build the deeplink as bellow

momo://?action=gettoken&merchantname=CGV Cinemas&amount=99000&merchantcode=CGV01&language=vi&description=Buy ticket&fee=0&ipaddress=192.168.1.154&[email protected]&sdkversion=2.0&appScheme=partnerSchemeId
  • partnerSchemeId: match with partnerSchemeId as Step 1
Deeplink Params description

Name                    Type      REQUIRED ?     Description
action                 String    required      value = gettoken. DO NOT EDIT
partner                String    required      value = merchant. DO NOT EDIT
merchantcode           String    required      provided by MoMo. get from business.momo.vn
merchantname           String    required      partner name / merchant name
merchantnamelabel      String    optional      Merchantname Hint/Label
appScheme              String    required      partnerSchemeId provided by MoMo , get from business.momo.vn
amount                 int       required      bill amount total
description            String    required      bill description
language               String    optional        DO NOT EDIT. value = vi
fee                    int       optional        fee amount (just review). default = 0
username               String    optional        user id/user identify/user email
billId                 String    optional        billId/Oder id
orderLabel             String    optional        Contract Number Hint/Label  
orderId                String    optional        Contract id
extra                  String    optional        json string - that should be more bill extra info

Sample app ios-swift-CocoaPods

-   pod "MomoiOSSwiftSdk", :git => "https://github.com/momodevelopment/MomoiOSSwiftSdk.git", :branch => "master", submodules: true

Android App

Sample app android

-   https://github.com/momo-wallet/mobile-sdk/tree/master/android

Version

Version 2.0

Authors

  • Lành Lưu - lanh.luu@mservice . com . vn
  • Hưng Đỗ - hung.do@mservice . com . vn

License

Since 2015 (c) MoMo

Contact - Support

About

If your business have a mobile app. You can use this SDK to integrate your mobile with MoMo App

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 42.0%
  • Objective-C 39.4%
  • Swift 17.3%
  • Ruby 1.3%