Skip to main content

DeepLink — Card Payment

Sends a Card Payment intent (transactionType: 2) to the RM Merchant App to accept card payments via DeepLink.

When to Use

Use this DeepLink when:

  • Your Android app needs to delegate card payment to the RM Merchant App
  • Accepting in-store card payments from a custom terminal app

How to Use

Send an Intent("REVENUE_MONSTER_PAYMENT") with transactionType: 2 and the order details. The RM Merchant App handles the payment and returns the result.

CardPayment.kt
Kotlin
1val i = Intent("REVENUE_MONSTER_PAYMENT").apply {
2 putExtra("packageName", packageName)
3 putExtra("receiverName", <<YOUR_ACTIVITY>>::class.java.name)
4 putExtra("transactionType", 2)
5 putExtra("orderId", System.currentTimeMillis().toString())
6 putExtra("orderTitle", "Intent Demo")
7 putExtra("amount", 100)
8 putExtra("printReceipt", false)
9}
10startActivity(i)
note

For terminal MF919, receipt printing cannot be controlled programmatically.

Response

Response.kt
Kotlin
val jsonString = intent?.getStringExtra("result")
itemOBJECT

Transaction response object

codeSTRING

"SUCCESS" if the payment succeeded, otherwise an error code.

errorOBJECT

Error details

codeSTRING

Error code if the request failed.

messageSTRING

Error message if the request failed.