Class: Stripe::BillingPortal::ConfigurationCreateParams::Features::PaymentMethodUpdate

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/billing_portal/configuration_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(enabled: nil, payment_method_configuration: nil) ⇒ PaymentMethodUpdate

Returns a new instance of PaymentMethodUpdate.



50
51
52
53
# File 'lib/stripe/params/billing_portal/configuration_create_params.rb', line 50

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

Instance Attribute Details

#enabledObject

Whether the feature is enabled.



46
47
48
# File 'lib/stripe/params/billing_portal/configuration_create_params.rb', line 46

def enabled
  @enabled
end

#payment_method_configurationObject

The [Payment Method Configuration](/api/payment_method_configurations) to use for this portal session. When specified, customers will be able to update their payment method to one of the options specified by the payment method configuration. If not set or set to an empty string, the default payment method configuration is used.



48
49
50
# File 'lib/stripe/params/billing_portal/configuration_create_params.rb', line 48

def payment_method_configuration
  @payment_method_configuration
end