class Vantiv::Api::TokenizationResponse

Constants

RESPONSE_CODES

Public Instance Methods

apple_pay() click to toggle source
# File lib/vantiv/api/tokenization_response.rb, line 39
def apple_pay
  @apple_pay ||=
    litle_transaction_response.apple_pay_response || ApplePayResponse.new
end
card_type() click to toggle source
# File lib/vantiv/api/tokenization_response.rb, line 23
def card_type
  litle_transaction_response.type
end
failure?() click to toggle source
# File lib/vantiv/api/tokenization_response.rb, line 31
def failure?
  !success?
end
invalid_card_number?() click to toggle source
# File lib/vantiv/api/tokenization_response.rb, line 35
def invalid_card_number?
  response_code == RESPONSE_CODES[:credit_card_number_invalid]
end
success?() click to toggle source
# File lib/vantiv/api/tokenization_response.rb, line 27
def success?
  !api_level_failure? && tokenization_successful?
end

Private Instance Methods

tokenization_successful?() click to toggle source
# File lib/vantiv/api/tokenization_response.rb, line 45
def tokenization_successful?
  response_code == RESPONSE_CODES[:account_successfully_registered] ||
    response_code == RESPONSE_CODES[:account_already_registered]
end
transaction_response_name() click to toggle source
# File lib/vantiv/api/tokenization_response.rb, line 50
def transaction_response_name
  "register_token_response"
end