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
| Code | Transaction Type |
|---|---|
| 0 | Purchase |
| 1 | Purchase with Naqd/Cashback |
| 2 | Refund |
| 3 | Authorization |
| 4 | Purchase Advice (Full) |
| 5 | Purchase Advice (Partial) |
| 6 | Auth Extension |
| 7 | Auth Void |
| 9 | Cash Advance |
| 10 | Reconciliation |
| 11 | Reversal |
| 15 | Bill Payment |
| 17 | Register |
| 18 | Start Session |
| 19 | End Session |
| 23 | Duplicate / Previous Txn |
| 24 | Check Status |
| 25 | Health Check |
Updated 4 days ago