Skip to main content

DeepLink — Setup

DeepLink Integration lets businesses manage orders through a single mobile application and process transactions using various payment methods via the Revenue Monster Merchant App on Android terminals.

note

This integration is compatible with any mobile device or terminal running the RM Merchant App.


How to Use

Step 1: Set Up the Android Receiver

Configure your Android app to receive the DeepLink intent from the RM Merchant App.

Step 2: Choose the Transaction Type

Select the appropriate transactionType number:

  • 1 — Quick Pay
  • 2 — Card Payment
  • 3 — Void Transaction
  • 4 — Wallet Settlement
  • 5 — Card Settlement

Step 3: Launch the Intent

Use the REVENUE_MONSTER_PAYMENT intent with the required extras.

Step 4: Handle the Response

The result is returned as a JSON string in the result extra of the intent.


AndroidManifest.xml

AndroidManifest.xml
Text
1<activity android:name=".ReceiverActivity" android:exported="true">
2 <intent-filter>
3 <action android:name="android.intent.action.SEND" />
4 <category android:name="android.intent.category.DEFAULT" />
5 <data android:mimeType="text/plain" />
6 </intent-filter>
7</activity>

ReceiverActivity.kt

ReceiverActivity.kt
Kotlin
1class ReceiverActivity : AppCompatActivity() {
2 override fun onCreate(savedInstanceState: Bundle?) {
3 super.onCreate(savedInstanceState)
4 try {
5 val keySet: Set<String> = intent?.extras!!.keySet()
6 keySet.forEach { key ->
7 val value = intent.extras!![key]
8 Log.v("Receiver", "key = $key || value = $value")
9 }
10 } catch (e: Exception) {
11 e.printStackTrace()
12 }
13 val result = intent?.getStringExtra("result")
14 val transactionType = intent?.getIntExtra("transactionType")
15 // Process result and transactionType here
16 }
17}