Class: Stripe::Checkout::SessionCreateParams::PhoneNumberCollection

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

#initialize(enabled: nil) ⇒ PhoneNumberCollection

Returns a new instance of PhoneNumberCollection.



2617
2618
2619
# File 'lib/stripe/params/checkout/session_create_params.rb', line 2617

def initialize(enabled: nil)
  @enabled = enabled
end

Instance Attribute Details

#enabledObject

Set to true to enable phone number collection.

Can only be set in payment and subscription mode.



2615
2616
2617
# File 'lib/stripe/params/checkout/session_create_params.rb', line 2615

def enabled
  @enabled
end