Class: Stripe::TestHelpers::ConfirmationTokenService::CreateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::TestHelpers::ConfirmationTokenService::CreateParams
- Defined in:
- lib/stripe/services/test_helpers/confirmation_token_service.rb
Defined Under Namespace
Classes: PaymentMethodData, Shipping
Instance Attribute Summary collapse
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#payment_method ⇒ Object
ID of an existing PaymentMethod.
-
#payment_method_data ⇒ Object
If provided, this hash will be used to create a PaymentMethod.
-
#return_url ⇒ Object
Return URL used to confirm the Intent.
-
#setup_future_usage ⇒ Object
Indicates that you intend to make future payments with this ConfirmationToken’s payment method.
-
#shipping ⇒ Object
Shipping information for this ConfirmationToken.
Instance Method Summary collapse
-
#initialize(expand: nil, payment_method: nil, payment_method_data: nil, return_url: nil, setup_future_usage: nil, shipping: nil) ⇒ CreateParams
constructor
A new instance of CreateParams.
Methods inherited from RequestParams
Constructor Details
#initialize(expand: nil, payment_method: nil, payment_method_data: nil, return_url: nil, setup_future_usage: nil, shipping: nil) ⇒ CreateParams
Returns a new instance of CreateParams.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 |
# File 'lib/stripe/services/test_helpers/confirmation_token_service.rb', line 632 def initialize( expand: nil, payment_method: nil, payment_method_data: nil, return_url: nil, setup_future_usage: nil, shipping: nil ) @expand = @payment_method = payment_method @payment_method_data = payment_method_data @return_url = return_url @setup_future_usage = setup_future_usage @shipping = shipping end |
Instance Attribute Details
#expand ⇒ Object
Specifies which fields in the response should be expanded.
618 619 620 |
# File 'lib/stripe/services/test_helpers/confirmation_token_service.rb', line 618 def @expand end |
#payment_method ⇒ Object
ID of an existing PaymentMethod.
620 621 622 |
# File 'lib/stripe/services/test_helpers/confirmation_token_service.rb', line 620 def payment_method @payment_method end |
#payment_method_data ⇒ Object
If provided, this hash will be used to create a PaymentMethod.
622 623 624 |
# File 'lib/stripe/services/test_helpers/confirmation_token_service.rb', line 622 def payment_method_data @payment_method_data end |
#return_url ⇒ Object
Return URL used to confirm the Intent.
624 625 626 |
# File 'lib/stripe/services/test_helpers/confirmation_token_service.rb', line 624 def return_url @return_url end |
#setup_future_usage ⇒ Object
Indicates that you intend to make future payments with this ConfirmationToken’s payment method.
The presence of this property will [attach the payment method](stripe.com/docs/payments/save-during-payment) to the PaymentIntent’s Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete.
628 629 630 |
# File 'lib/stripe/services/test_helpers/confirmation_token_service.rb', line 628 def setup_future_usage @setup_future_usage end |
#shipping ⇒ Object
Shipping information for this ConfirmationToken.
630 631 632 |
# File 'lib/stripe/services/test_helpers/confirmation_token_service.rb', line 630 def shipping @shipping end |