Class: Stripe::V2::Payments::OffSessionPaymentCreateParams::PaymentMethodData::Card

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/v2/payments/off_session_payment_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

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

Returns a new instance of Card.



185
186
187
188
189
190
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 185

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 card CVC.



177
178
179
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 177

def cvc
  @cvc
end

#exp_monthObject

The card expiration month.



179
180
181
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 179

def exp_month
  @exp_month
end

#exp_yearObject

The card expiration year.



181
182
183
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 181

def exp_year
  @exp_year
end

#numberObject

The card number.



183
184
185
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 183

def number
  @number
end