Class: Stripe::CustomerSession::CreateParams::Components

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/customer_session.rb

Defined Under Namespace

Classes: BuyButton, PaymentElement, PricingTable

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(buy_button: nil, payment_element: nil, pricing_table: nil) ⇒ Components

Returns a new instance of Components.



142
143
144
145
146
# File 'lib/stripe/resources/customer_session.rb', line 142

def initialize(buy_button: nil, payment_element: nil, pricing_table: nil)
  @buy_button = buy_button
  @payment_element = payment_element
  @pricing_table = pricing_table
end

Instance Attribute Details

#buy_buttonObject

Configuration for buy button.



136
137
138
# File 'lib/stripe/resources/customer_session.rb', line 136

def buy_button
  @buy_button
end

#payment_elementObject

Configuration for the Payment Element.



138
139
140
# File 'lib/stripe/resources/customer_session.rb', line 138

def payment_element
  @payment_element
end

#pricing_tableObject

Configuration for the pricing table.



140
141
142
# File 'lib/stripe/resources/customer_session.rb', line 140

def pricing_table
  @pricing_table
end