App to App

Android App-to-App Integration

Uses Android Intent-based communication between your ECR app and the Nami payment app on the same device.

How It Works

Your App → Broadcast Intent → Nami Pay App → Card Payment → Result Intent → Your App

Integration Example

// Send transaction via broadcast
val intent = Intent("com.nami.payment.TRANSACTION")
intent.putExtra("txnType", 0)
intent.putExtra("amount", "100")
intent.putExtra("ecrRefNo", "REF001")
sendBroadcast(intent)

// Register receiver for response
val receiver = object : BroadcastReceiver() {
    override fun onReceive(context: Context, intent: Intent) {
        val responseCode = intent.getStringExtra("responseCode")
        val approvalCode = intent.getStringExtra("approvalCode")
        val rrn = intent.getStringExtra("rrn")
    }
}
registerReceiver(receiver, IntentFilter("com.nami.payment.RESPONSE"))

Transaction Type Codes

CodeTransaction Type
0Purchase
1Purchase with Naqd/Cashback
2Refund
3Authorization
4Purchase Advice (Full)
5Purchase Advice (Partial)
6Auth Extension
7Auth Void
9Cash Advance
10Reconciliation
11Reversal
15Bill Payment
17Register
18Start Session
19End Session
23Duplicate / Previous Txn
24Check Status
25Health Check