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

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



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

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.



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

def cvc
  @cvc
end

#exp_monthObject

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



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

def exp_month
  @exp_month
end

#exp_yearObject

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



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

def exp_year
  @exp_year
end

#numberObject

The card number, as a string without any separators.



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

def number
  @number
end