Class: CheckoutSdk::Payments::CardSource

Inherits:
PaymentSource show all
Defined in:
lib/checkout_sdk/payments/source/card_source.rb

Instance Attribute Summary collapse

Attributes inherited from PaymentSource

#type

Instance Method Summary collapse

Constructor Details

#initializeCardSource

Returns a new instance of CardSource.



37
38
39
# File 'lib/checkout_sdk/payments/source/card_source.rb', line 37

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

Instance Attribute Details

#account_holderCheckoutSdk::Common::AccountHolder



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/checkout_sdk/payments/source/card_source.rb', line 25

class CardSource < PaymentSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :cvv,
                :stored,
                :store_for_future_use,
                :billing_address,
                :phone,
                :account_holder

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

#billing_addressCheckoutSdk::Common::Address



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/checkout_sdk/payments/source/card_source.rb', line 25

class CardSource < PaymentSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :cvv,
                :stored,
                :store_for_future_use,
                :billing_address,
                :phone,
                :account_holder

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

#cvvString

Returns:

  • (String)


25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/checkout_sdk/payments/source/card_source.rb', line 25

class CardSource < PaymentSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :cvv,
                :stored,
                :store_for_future_use,
                :billing_address,
                :phone,
                :account_holder

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

#expiry_monthInteger

Returns:

  • (Integer)


25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/checkout_sdk/payments/source/card_source.rb', line 25

class CardSource < PaymentSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :cvv,
                :stored,
                :store_for_future_use,
                :billing_address,
                :phone,
                :account_holder

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

#expiry_yearInteger

Returns:

  • (Integer)


25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/checkout_sdk/payments/source/card_source.rb', line 25

class CardSource < PaymentSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :cvv,
                :stored,
                :store_for_future_use,
                :billing_address,
                :phone,
                :account_holder

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

#nameString

Returns:

  • (String)


25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/checkout_sdk/payments/source/card_source.rb', line 25

class CardSource < PaymentSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :cvv,
                :stored,
                :store_for_future_use,
                :billing_address,
                :phone,
                :account_holder

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

#numberString

Returns:

  • (String)


25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/checkout_sdk/payments/source/card_source.rb', line 25

class CardSource < PaymentSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :cvv,
                :stored,
                :store_for_future_use,
                :billing_address,
                :phone,
                :account_holder

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

#phoneCheckoutSdk::Common::Phone



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/checkout_sdk/payments/source/card_source.rb', line 25

class CardSource < PaymentSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :cvv,
                :stored,
                :store_for_future_use,
                :billing_address,
                :phone,
                :account_holder

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

#store_for_future_useTrueClass, FalseClass

Returns:

  • (TrueClass, FalseClass)


25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/checkout_sdk/payments/source/card_source.rb', line 25

class CardSource < PaymentSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :cvv,
                :stored,
                :store_for_future_use,
                :billing_address,
                :phone,
                :account_holder

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

#storedTrueClass, FalseClass

Returns:

  • (TrueClass, FalseClass)


25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/checkout_sdk/payments/source/card_source.rb', line 25

class CardSource < PaymentSource
  attr_accessor :number,
                :expiry_month,
                :expiry_year,
                :name,
                :cvv,
                :stored,
                :store_for_future_use,
                :billing_address,
                :phone,
                :account_holder

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