Search documentation of tiger_stripe

# Stripe.Services.PaymentMethodConfigurationService (tiger_stripe v0.1.1)

Copy Markdown View Source

PaymentMethodConfigResourcePaymentMethodConfiguration

PaymentMethodConfigurations control which payment methods are displayed to your customers when you don't explicitly specify payment method types. You can have multiple configurations with different sets of payment methods for different scenarios.

There are two types of PaymentMethodConfigurations. Which is used depends on the charge type:

Direct configurations apply to payments created on your account, including Connect destination charges, Connect separate charges and transfers, and payments not involving Connect.

Child configurations apply to payments created on your connected accounts using direct charges, and charges with the on_behalf_of parameter.

Child configurations have a `parent` that sets default values and controls which settings connected accounts may override. You can specify a parent ID at payment time, and Stripe will automatically resolve the connected account’s associated child configuration. Parent configurations are managed in the dashboard and are not available in this API.

Related guides:

- Payment Method Configurations API
- Multiple configurations on dynamic payment methods
- Multiple configurations for your Connect accounts

## Summary

### Functions

create(client, params \\ %{}, opts \\ [])

Create a payment method configuration

list(client, params \\ %{}, opts \\ [])

List payment method configurations

retrieve(client, configuration, params \\ %{}, opts \\ [])

Retrieve payment method configuration

update(client, configuration, params \\ %{}, opts \\ [])

Update payment method configuration

## Functions

# create(client, params \\ %{}, opts \\ [])

    @spec create(Stripe.Client.t(), map(), keyword()) ::
      {:ok, term()} | {:error, Stripe.Error.t()}

Create a payment method configuration

Creates a payment method configuration

# list(client, params \\ %{}, opts \\ [])

    @spec list(Stripe.Client.t(), map(), keyword()) ::
      {:ok, term()} | {:error, Stripe.Error.t()}

List payment method configurations

List payment method configurations

# retrieve(client, configuration, params \\ %{}, opts \\ [])

    @spec retrieve(Stripe.Client.t(), String.t(), map(), keyword()) ::
      {:ok, term()} | {:error, Stripe.Error.t()}

Retrieve payment method configuration

Retrieve payment method configuration

# update(client, configuration, params \\ %{}, opts \\ [])

    @spec update(Stripe.Client.t(), String.t(), map(), keyword()) ::
      {:ok, term()} | {:error, Stripe.Error.t()}

Update payment method configuration

Update payment method configuration