Class: CheckoutSdk::Risk::TokenSource

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

Instance Attribute Summary collapse

Attributes inherited from RiskPaymentSource

#type

Instance Method Summary collapse

Constructor Details

#initializeTokenSource

Returns a new instance of TokenSource.



19
20
21
# File 'lib/checkout_sdk/risk/source/token_source.rb', line 19

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

Instance Attribute Details

#billing_addressCheckoutSdk::Common::Address



13
14
15
16
17
18
19
20
21
22
# File 'lib/checkout_sdk/risk/source/token_source.rb', line 13

class TokenSource < RiskPaymentSource
  attr_accessor :token,
                :billing_address,
                :phone,
                :store_for_future_use

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

#phoneCheckoutSdk::Common::Phone



13
14
15
16
17
18
19
20
21
22
# File 'lib/checkout_sdk/risk/source/token_source.rb', line 13

class TokenSource < RiskPaymentSource
  attr_accessor :token,
                :billing_address,
                :phone,
                :store_for_future_use

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

#store_for_future_useTrueClass, FalseClass

Returns:

  • (TrueClass, FalseClass)


13
14
15
16
17
18
19
20
21
22
# File 'lib/checkout_sdk/risk/source/token_source.rb', line 13

class TokenSource < RiskPaymentSource
  attr_accessor :token,
                :billing_address,
                :phone,
                :store_for_future_use

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

#tokenString

Returns:

  • (String)


13
14
15
16
17
18
19
20
21
22
# File 'lib/checkout_sdk/risk/source/token_source.rb', line 13

class TokenSource < RiskPaymentSource
  attr_accessor :token,
                :billing_address,
                :phone,
                :store_for_future_use

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