Transaction Response Parameters

When a transaction completes (Payment, Refund, Void, or Payment Request), the myPOS Glass SDK returns an Intent with relevant transaction data. The table below outlines the available response parameters.

Standard Response Fields

FieldTypeDescription
reference_numberStringInternal myPOS reference number for the transaction
cardholder_nameStringName embossed on the card
date_timeStringTransaction timestamp in format YYMMDDHHmmss
statusintStatus constant from TransactionProcessingResult
status_textStringHuman-readable status text
card_brandStringCard network (e.g. MASTERCARD, VISA, VPAY)
card_entry_modeStringCard entry method: ENTRY_MODE_CONTACTLESS_MCHIP (contactless chip)
response_codeStringIssuer response code; values ≠ "00" indicate a decline
authorisation_codeStringAuthorization code from the issuer
signature_requiredbooleantrue = Signature required on receipt; false = Not required
TSIStringTransaction Status Indicator
TVRStringTerminal Verification Result
AIDStringApplication Identifier from the card
STANStringSystem Trace Audit Number (unique per TID)
CVMStringCardholder Verification Method: P = PIN, S = Signature, N = No CVM
application_nameStringCard application label
transaction_approvedbooleantrue = Approved; false = Declined
TIDStringTerminal ID
update_pendingbooleanIndicates if a new app update is available
resp_codeStringPayment Request response code; "00" = success
expire_dateStringExpiration date for a Payment Request

Merchant Data (merchant_data Bundle)

Included if available; contains information used for receipt generation.

KeyTypeDescription
billing_descriptorStringMerchant billing name
address_line1StringAddress line 1
address_line2StringAddress line 2
MIDStringMerchant Identifier
custom_receipt_row1StringFooter row 1 (custom text)
custom_receipt_row2StringFooter row 2 (custom text)

Installment Data (installment_data Bundle)

Present only if the transaction is paid in installments.

KeyTypeDescription
numberintNumber of installments
interest_ratedoubleInterest rate applied
feedoubleInstallment fee
annual_percentage_ratedoubleAnnual percentage rate
total_amountdoubleTotal amount payable
first_installment_amountdoubleAmount of the first installment
subsequent_installment_amountdoubleAmount of subsequent installments

Notes

Unless otherwise specified, all values are returned as Strings.
Some fields may be omitted depending on the card type or transaction flow. Always perform null/empty checks before accessing values.