Class: Minfraud::Components::CreditCard

Inherits:
Base
  • Object
show all
Defined in:
lib/minfraud/components/credit_card.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#to_json

Constructor Details

#initialize(params = {}) ⇒ Minfraud::Components::CreditCard

Creates Minfraud::Components::CreditCard instance

Parameters:

  • params (Hash) (defaults to: {})

    hash of parameters



36
37
38
39
40
41
42
43
44
# File 'lib/minfraud/components/credit_card.rb', line 36

def initialize(params = {})
  @bank_phone_country_code = params[:bank_phone_country_code]
  @issuer_id_number        = params[:issuer_id_number]
  @last_4_digits           = params[:last_4_digits]
  @bank_name               = params[:bank_name]
  @bank_phone_number       = params[:bank_phone_number]
  @avs_result              = params[:avs_result]
  @cvv_result              = params[:cvv_result]
end

Instance Attribute Details

#avs_resultString

Returns The address verification system (AVS) check result, as returned to you by the credit card processor.

Returns:

  • (String)

    The address verification system (AVS) check result, as returned to you by the credit card processor



27
28
29
# File 'lib/minfraud/components/credit_card.rb', line 27

def avs_result
  @avs_result
end

#bank_nameString

Returns The name of the issuing bank as provided by the end user.

Returns:

  • (String)

    The name of the issuing bank as provided by the end user



15
16
17
# File 'lib/minfraud/components/credit_card.rb', line 15

def bank_name
  @bank_name
end

#bank_phone_country_codeString

Returns The phone country code for the issuing bank as provided by the end user.

Returns:

  • (String)

    The phone country code for the issuing bank as provided by the end user



19
20
21
# File 'lib/minfraud/components/credit_card.rb', line 19

def bank_phone_country_code
  @bank_phone_country_code
end

#bank_phone_numberString

Returns The phone number, without the country code, for the issuing bank as provided by the end user.

Returns:

  • (String)

    The phone number, without the country code, for the issuing bank as provided by the end user



23
24
25
# File 'lib/minfraud/components/credit_card.rb', line 23

def bank_phone_number
  @bank_phone_number
end

#cvv_resultString

Returns The card verification value (CVV) code as provided by the payment processor.

Returns:

  • (String)

    The card verification value (CVV) code as provided by the payment processor



31
32
33
# File 'lib/minfraud/components/credit_card.rb', line 31

def cvv_result
  @cvv_result
end

#issuer_id_numberObject

# @return [String] The issuer ID number for the credit card. This is the first 6 digits of the credit card number. It identifies the issuing bank



7
8
9
# File 'lib/minfraud/components/credit_card.rb', line 7

def issuer_id_number
  @issuer_id_number
end

#last_4_digitsString

Returns The last four digits of the credit card number.

Returns:

  • (String)

    The last four digits of the credit card number



11
12
13
# File 'lib/minfraud/components/credit_card.rb', line 11

def last_4_digits
  @last_4_digits
end

#phone_phone_numberString

Returns The phone number, without the country code, for the issuing bank as provided by the end user.

Returns:

  • (String)

    The phone number, without the country code, for the issuing bank as provided by the end user



23
# File 'lib/minfraud/components/credit_card.rb', line 23

attr_accessor :bank_phone_number