Skip to main content

DeepLink — Card Settlement

Sends a Card Settlement intent (transactionType: 5) to the RM Merchant App to settle card transactions via DeepLink.

When to Use

Use this DeepLink when:

  • End-of-day settlement for card transactions on the terminal
  • Closing the daily card batch from your custom app

How to Use

Send an Intent("REVENUE_MONSTER_PAYMENT") with transactionType: 5. No order details required — settlement applies to all card transactions in the open batch.

CardSettlement.kt
Kotlin
1val i = Intent("REVENUE_MONSTER_PAYMENT").apply {
2 putExtra("packageName", packageName)
3 putExtra("receiverName", <<YOUR_ACTIVITY>>::class.java.name)
4 putExtra("transactionType", 5)
5}
6startActivity(i)

Response

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

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

errorOBJECT

Error details

codeSTRING

Error code if the request failed.

messageSTRING

Error message if the request failed.

debugSTRING

Debug message (sandbox only).

summaryOBJECT

Settlement summary

batchNoSTRING

Terminal settlement sequence number

currencyTypeSTRING

Settlement currency type (currently supported MYR only)

noOfTransactionsINTEGER

Count of settled transactions

settlementAtSTRING

Date and time of settlement

totalSalesAmountINTEGER

Total sales amount in cents

transactions[*]OBJECT

transactions[*] details

amountINTEGER

Transaction amount in cents

currencyTypeINTEGER

Transaction currency type

transactionAtSTRING

Transaction date and time

transactionIdSTRING

Transaction ID

typeSTRING

Transaction type