Class: Stripe::Terminal::Reader::PresentPaymentMethodParams::Card

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



687
688
689
690
691
692
# File 'lib/stripe/resources/terminal/reader.rb', line 687

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.



679
680
681
# File 'lib/stripe/resources/terminal/reader.rb', line 679

def cvc
  @cvc
end

#exp_monthObject

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



681
682
683
# File 'lib/stripe/resources/terminal/reader.rb', line 681

def exp_month
  @exp_month
end

#exp_yearObject

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



683
684
685
# File 'lib/stripe/resources/terminal/reader.rb', line 683

def exp_year
  @exp_year
end

#numberObject

The card number, as a string without any separators.



685
686
687
# File 'lib/stripe/resources/terminal/reader.rb', line 685

def number
  @number
end