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.



695
696
697
698
699
700
# File 'lib/stripe/resources/terminal/reader.rb', line 695

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.



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

def cvc
  @cvc
end

#exp_monthObject

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



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

def exp_month
  @exp_month
end

#exp_yearObject

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



691
692
693
# File 'lib/stripe/resources/terminal/reader.rb', line 691

def exp_year
  @exp_year
end

#numberObject

The card number, as a string without any separators.



693
694
695
# File 'lib/stripe/resources/terminal/reader.rb', line 693

def number
  @number
end