Method: CTAPI::Cardterminal#request_card_status
- Defined in:
- lib/ctapi.rb
#request_card_status ⇒ Object
Requests the card status from the cardterminal. Returns the Response object or nil if the response wasn’t successful. This method is called by the card_inserted? method to find out if a card is inserted into the terminal.
273 274 275 276 277 278 |
# File 'lib/ctapi.rb', line 273 def request_card_status get_card_status = [ CTBCS_CLA, CTBCS_INS_STATUS, CTBCS_P1_CT_KERNEL, CTBCS_P2_STATUS_ICC, 0 ] response = data(CT, HOST, get_card_status) response.successful? ? response : nil end |