Key Classes
MsgType
This class defines constants for payment message types, specifying the action to be performed:
| Standard purchase transaction. |
| Authorization for a future transaction. |
| Completion of a pre-authorized payment. |
| Cancel an unprocessed transaction. |
| Refund a processed transaction. |
| Cancel the current card read operation. |
ReaderType
This class defines constants for card reader types, specifying how the card is processed:
| Magnetic stripe card swipe. |
| Chip card inserted. |
| Contactless payment (e.g., NFC). |
| Support for both swipe and insert methods. |
| Support for contactless and swipe. |
| Support for chip and contactless. |
| Support for chip, contactless, and swipe. |
RequestMsg
The RequestMsg class is a Parcelable data container for all payment-related parameters. It is annotated with @Parcelize to support Android-specific serialization (required for AIDL/IPC).
private const val CURRENCY = "USD"
private const val DEFAULT_INVOICE_NUMBER = "10120304"
private const val DEFAULT_TXN_AMOUNT = "15.00"
private const val DEFAULT_STAN_NUMBER = "1"
private const val DEFAULT_AGREEMENT_ID = "MERCH123_20250804_001"
private const val DEFAULT_AGREEMENT_TYPE = "I"On this page
- Key Classes