Class: Stripe::Checkout::SessionCreateParams::CustomField::Dropdown

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/checkout/session_create_params.rb

Defined Under Namespace

Classes: Option

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(default_value: nil, options: nil) ⇒ Dropdown

Returns a new instance of Dropdown.



172
173
174
175
# File 'lib/stripe/params/checkout/session_create_params.rb', line 172

def initialize(default_value: nil, options: nil)
  @default_value = default_value
  @options = options
end

Instance Attribute Details

#default_valueObject

The value that will pre-fill the field on the payment page.Must match a ‘value` in the `options` array.



168
169
170
# File 'lib/stripe/params/checkout/session_create_params.rb', line 168

def default_value
  @default_value
end

#optionsObject

The options available for the customer to select. Up to 200 options allowed.



170
171
172
# File 'lib/stripe/params/checkout/session_create_params.rb', line 170

def options
  @options
end