Class: Stripe::SetupIntentService::CreateParams::AutomaticPaymentMethods

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/setup_intent_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(allow_redirects: nil, enabled: nil) ⇒ AutomaticPaymentMethods

Returns a new instance of AutomaticPaymentMethods.



73
74
75
76
# File 'lib/stripe/services/setup_intent_service.rb', line 73

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

Instance Attribute Details

#allow_redirectsObject

Controls whether this SetupIntent will accept redirect-based payment methods.

Redirect-based payment methods may require your customer to be redirected to a payment method’s app or site for authentication or additional steps. To [confirm](stripe.com/docs/api/setup_intents/confirm) this SetupIntent, you may be required to provide a ‘return_url` to redirect customers back to your site after they authenticate or complete the setup.



69
70
71
# File 'lib/stripe/services/setup_intent_service.rb', line 69

def allow_redirects
  @allow_redirects
end

#enabledObject

Whether this feature is enabled.



71
72
73
# File 'lib/stripe/services/setup_intent_service.rb', line 71

def enabled
  @enabled
end