Search documentation of stripe_elixir

# StripeElixir.Params.SubscriptionCreateParams.PaymentSettings (stripe_elixir v0.1.0)

Copy Markdown View Source

Nested parameters.

## Summary

### Types

t()

## Types

# t()

    @type t() :: %StripeElixir.Params.SubscriptionCreateParams.PaymentSettings{
      payment_method_options: map() | nil,
      payment_method_types: map() | nil,
      save_default_payment_method: String.t() | nil
    }

- `payment_method_options` - Payment-method-specific configuration to provide to invoices created by the subscription.
- `payment_method_types` - The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your invoice template settings. Should not be specified with payment_method_configuration
- `save_default_payment_method` - Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds. Defaults to `off` if unspecified. Possible values: `off`, `on_subscription`.