Class: Stripe::DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData::Card

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/delegated_checkout/requested_session_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(cvc: nil, exp_month: nil, exp_year: nil, number: nil) ⇒ Card

Returns a new instance of Card.



126
127
128
129
130
131
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 126

def initialize(cvc: nil, exp_month: nil, exp_year: nil, number: nil)
  @cvc = cvc
  @exp_month = exp_month
  @exp_year = exp_year
  @number = number
end

Instance Attribute Details

#cvcObject

The CVC of the card.



118
119
120
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 118

def cvc
  @cvc
end

#exp_monthObject

The expiration month of the card.



120
121
122
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 120

def exp_month
  @exp_month
end

#exp_yearObject

The expiration year of the card.



122
123
124
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 122

def exp_year
  @exp_year
end

#numberObject

The number of the card.



124
125
126
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 124

def number
  @number
end