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, new, #to_h

Constructor Details

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

Returns a new instance of Card.



88
89
90
91
92
93
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 88

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.



80
81
82
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 80

def cvc
  @cvc
end

#exp_monthObject

The card expiration month.



82
83
84
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 82

def exp_month
  @exp_month
end

#exp_yearObject

The card expiration year.



84
85
86
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 84

def exp_year
  @exp_year
end

#numberObject

The card number.



86
87
88
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 86

def number
  @number
end