Class: Stripe::Terminal::ReaderPresentPaymentMethodParams::Card

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/terminal/reader_present_payment_method_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.



17
18
19
20
21
22
# File 'lib/stripe/params/terminal/reader_present_payment_method_params.rb', line 17

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

Card security code.



9
10
11
# File 'lib/stripe/params/terminal/reader_present_payment_method_params.rb', line 9

def cvc
  @cvc
end

#exp_monthObject

Two-digit number representing the card’s expiration month.



11
12
13
# File 'lib/stripe/params/terminal/reader_present_payment_method_params.rb', line 11

def exp_month
  @exp_month
end

#exp_yearObject

Two- or four-digit number representing the card’s expiration year.



13
14
15
# File 'lib/stripe/params/terminal/reader_present_payment_method_params.rb', line 13

def exp_year
  @exp_year
end

#numberObject

The card number, as a string without any separators.



15
16
17
# File 'lib/stripe/params/terminal/reader_present_payment_method_params.rb', line 15

def number
  @number
end