Class: Stripe::ConfirmationTokenCreateParams

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/confirmation_token_create_params.rb

Defined Under Namespace

Classes: PaymentMethodData, PaymentMethodOptions, Shipping

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(expand: nil, payment_method: nil, payment_method_data: nil, payment_method_options: nil, return_url: nil, setup_future_usage: nil, shipping: nil) ⇒ ConfirmationTokenCreateParams

Returns a new instance of ConfirmationTokenCreateParams.



652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
# File 'lib/stripe/params/confirmation_token_create_params.rb', line 652

def initialize(
  expand: nil,
  payment_method: nil,
  payment_method_data: nil,
  payment_method_options: nil,
  return_url: nil,
  setup_future_usage: nil,
  shipping: nil
)
  @expand = expand
  @payment_method = payment_method
  @payment_method_data = payment_method_data
  @payment_method_options = payment_method_options
  @return_url = return_url
  @setup_future_usage = setup_future_usage
  @shipping = shipping
end

Instance Attribute Details

#expandObject

Specifies which fields in the response should be expanded.



636
637
638
# File 'lib/stripe/params/confirmation_token_create_params.rb', line 636

def expand
  @expand
end

#payment_methodObject

ID of an existing PaymentMethod.



638
639
640
# File 'lib/stripe/params/confirmation_token_create_params.rb', line 638

def payment_method
  @payment_method
end

#payment_method_dataObject

If provided, this hash will be used to create a PaymentMethod.



640
641
642
# File 'lib/stripe/params/confirmation_token_create_params.rb', line 640

def payment_method_data
  @payment_method_data
end

#payment_method_optionsObject

Payment-method-specific configuration for this ConfirmationToken.



642
643
644
# File 'lib/stripe/params/confirmation_token_create_params.rb', line 642

def payment_method_options
  @payment_method_options
end

#return_urlObject

Return URL used to confirm the Intent.



644
645
646
# File 'lib/stripe/params/confirmation_token_create_params.rb', line 644

def return_url
  @return_url
end

#setup_future_usageObject

Indicates that you intend to make future payments with this ConfirmationToken’s payment method.

The presence of this property will [attach the payment method](docs.stripe.com/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.



648
649
650
# File 'lib/stripe/params/confirmation_token_create_params.rb', line 648

def setup_future_usage
  @setup_future_usage
end

#shippingObject

Shipping information for this ConfirmationToken.



650
651
652
# File 'lib/stripe/params/confirmation_token_create_params.rb', line 650

def shipping
  @shipping
end