React native
Model
Response Interface
export interface CardData {
aid?: string; // Application Identifier
appName?: string; // Application Name
tc?: string; // Transaction Certificate
tsi?: string; // Transaction Status Information
tvr?: string; // Terminal Verification Results
}
export interface TransactionResponse {
tranId?: string; // Transaction ID
trace?: string; // Trace number
rrn?: string; // Retrieval Reference Number
tranType?: string; // Transaction type
tranStatus?: string; // Transaction status
approvalCode?: string; // Approval code from payment processor
paymentMethod?: string; // Payment method used
cardData?: CardData; // Card data information
entryMode?: string; // Entry mode (e.g., contactless)
maskedAccount?: string; // Masked account number
cvmPerformed?: string; // Cardholder Verification Method performed
acqMid?: string; // Acquirer Merchant ID
acqTid?: string; // Acquirer Terminal ID
posMessageId?: string; // POS Message ID
mchAddress?: string; // Merchant address
mchName?: string; // Merchant name
totalAmount?: number; // Total transaction amount
createByName?: string; // Created by user name
createdAt?: string; // Creation timestamp
updatedAt?: string; // Update timestamp
}
export interface N2AppResponse {
rspCode?: string; // Response code ('00' = success)
rspMsg?: string; // Response message
tranId?: string; // Transaction ID (quick access)
type?: 'success' | 'failed'; // Response type
data?: TransactionResponse | Record<string, any>; // Detailed transaction data
}