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.



1945
1946
1947
# File 'lib/stripe/params/checkout/session_create_params.rb', line 1945

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.



1943
1944
1945
# File 'lib/stripe/params/checkout/session_create_params.rb', line 1943

def enabled
  @enabled
end