Class: Stripe::CustomerSessionService::CreateParams::Components

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



90
91
92
93
94
# File 'lib/stripe/services/customer_session_service.rb', line 90

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.



82
83
84
# File 'lib/stripe/services/customer_session_service.rb', line 82

def buy_button
  @buy_button
end

#payment_elementObject

Configuration for the Payment Element.



85
86
87
# File 'lib/stripe/services/customer_session_service.rb', line 85

def payment_element
  @payment_element
end

#pricing_tableObject

Configuration for the pricing table.



88
89
90
# File 'lib/stripe/services/customer_session_service.rb', line 88

def pricing_table
  @pricing_table
end