Class: Stripe::TestHelpers::Terminal::ReaderPresentPaymentMethodParams::Card
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::TestHelpers::Terminal::ReaderPresentPaymentMethodParams::Card
- Defined in:
- lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb
Instance Attribute Summary collapse
-
#cvc ⇒ Object
Card security code.
-
#exp_month ⇒ Object
Two-digit number representing the card’s expiration month.
-
#exp_year ⇒ Object
Two- or four-digit number representing the card’s expiration year.
-
#number ⇒ Object
The card number, as a string without any separators.
Instance Method Summary collapse
-
#initialize(cvc: nil, exp_month: nil, exp_year: nil, number: nil) ⇒ Card
constructor
A new instance of Card.
Methods inherited from RequestParams
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
#cvc ⇒ Object
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_month ⇒ Object
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_year ⇒ Object
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 |
#number ⇒ Object
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 |