Class: CheckoutSdk::Risk::CardSource

Inherits:
RiskPaymentSource show all
Defined in:
lib/checkout_sdk/risk/source/card_source.rb

Instance Attribute Summary collapse

Attributes inherited from RiskPaymentSource

#type

Instance Method Summary collapse

Constructor Details

#initializeCardSource

Returns a new instance of CardSource.



25
26
27
# File 'lib/checkout_sdk/risk/source/card_source.rb', line 25

def initialize
  super CheckoutSdk::Common::PaymentSourceType::CARD
end

Instance Attribute Details

#billing_addressCheckoutSdk::Common::Address



17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/checkout_sdk/risk/source/card_source.rb', line 17

class CardSource < RiskPaymentSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :billing_address,
                :phone

  def initialize
    super CheckoutSdk::Common::PaymentSourceType::CARD
  end
end

#expiry_monthInteger

Returns:

  • (Integer)


17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/checkout_sdk/risk/source/card_source.rb', line 17

class CardSource < RiskPaymentSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :billing_address,
                :phone

  def initialize
    super CheckoutSdk::Common::PaymentSourceType::CARD
  end
end

#expiry_yearInteger

Returns:

  • (Integer)


17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/checkout_sdk/risk/source/card_source.rb', line 17

class CardSource < RiskPaymentSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :billing_address,
                :phone

  def initialize
    super CheckoutSdk::Common::PaymentSourceType::CARD
  end
end

#nameString

Returns:

  • (String)


17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/checkout_sdk/risk/source/card_source.rb', line 17

class CardSource < RiskPaymentSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :billing_address,
                :phone

  def initialize
    super CheckoutSdk::Common::PaymentSourceType::CARD
  end
end

#numberString

Returns:

  • (String)


17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/checkout_sdk/risk/source/card_source.rb', line 17

class CardSource < RiskPaymentSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :billing_address,
                :phone

  def initialize
    super CheckoutSdk::Common::PaymentSourceType::CARD
  end
end

#phoneCheckoutSdk::Common::Phone



17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/checkout_sdk/risk/source/card_source.rb', line 17

class CardSource < RiskPaymentSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :billing_address,
                :phone

  def initialize
    super CheckoutSdk::Common::PaymentSourceType::CARD
  end
end