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

#to_h

Constructor Details

#initialize(enabled: nil) ⇒ PhoneNumberCollection

Returns a new instance of PhoneNumberCollection.



1885
1886
1887
# File 'lib/stripe/params/checkout/session_create_params.rb', line 1885

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.



1883
1884
1885
# File 'lib/stripe/params/checkout/session_create_params.rb', line 1883

def enabled
  @enabled
end