Class: Stripe::Checkout::Session::CreateParams::CustomField::Dropdown
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Checkout::Session::CreateParams::CustomField::Dropdown
- Defined in:
- lib/stripe/resources/checkout/session.rb
Defined Under Namespace
Classes: Option
Instance Attribute Summary collapse
-
#default_value ⇒ Object
The value that will pre-fill the field on the payment page.Must match a ‘value` in the `options` array.
-
#options ⇒ Object
The options available for the customer to select.
Instance Method Summary collapse
-
#initialize(default_value: nil, options: nil) ⇒ Dropdown
constructor
A new instance of Dropdown.
Methods inherited from RequestParams
Constructor Details
#initialize(default_value: nil, options: nil) ⇒ Dropdown
Returns a new instance of Dropdown.
1196 1197 1198 1199 |
# File 'lib/stripe/resources/checkout/session.rb', line 1196 def initialize(default_value: nil, options: nil) @default_value = default_value @options = end |
Instance Attribute Details
#default_value ⇒ Object
The value that will pre-fill the field on the payment page.Must match a ‘value` in the `options` array.
1192 1193 1194 |
# File 'lib/stripe/resources/checkout/session.rb', line 1192 def default_value @default_value end |
#options ⇒ Object
The options available for the customer to select. Up to 200 options allowed.
1194 1195 1196 |
# File 'lib/stripe/resources/checkout/session.rb', line 1194 def @options end |