Class: Stripe::PaymentIntentCreateParams::AutomaticPaymentMethods
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentIntentCreateParams::AutomaticPaymentMethods
- Defined in:
- lib/stripe/params/payment_intent_create_params.rb
Instance Attribute Summary collapse
-
#allow_redirects ⇒ Object
Controls whether this PaymentIntent will accept redirect-based payment methods.
-
#enabled ⇒ Object
Whether this feature is enabled.
Instance Method Summary collapse
-
#initialize(allow_redirects: nil, enabled: nil) ⇒ AutomaticPaymentMethods
constructor
A new instance of AutomaticPaymentMethods.
Methods inherited from RequestParams
Constructor Details
#initialize(allow_redirects: nil, enabled: nil) ⇒ AutomaticPaymentMethods
Returns a new instance of AutomaticPaymentMethods.
14 15 16 17 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 14 def initialize(allow_redirects: nil, enabled: nil) @allow_redirects = allow_redirects @enabled = enabled end |
Instance Attribute Details
#allow_redirects ⇒ Object
Controls whether this PaymentIntent 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/payment_intents/confirm) this PaymentIntent, you may be required to provide a ‘return_url` to redirect customers back to your site after they authenticate or complete the payment.
10 11 12 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 10 def allow_redirects @allow_redirects end |
#enabled ⇒ Object
Whether this feature is enabled.
12 13 14 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 12 def enabled @enabled end |