Search documentation of tiger_stripe

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

Copy Markdown View Source

CustomerPaymentSource API operations.

## Summary

### Functions

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

Create a card

delete(client, customer, id, params \\ %{}, opts \\ [])

Delete a customer source

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

List sources for a specified customer.

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

Retrieve a specified source for a given customer.

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

Update a specified source for a given customer.

verify(client, customer, id, params \\ %{}, opts \\ [])

Verify a bank account

## Functions

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

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

Create a card

When you create a new credit card, you must specify a customer or recipient on which to create it.

If the card’s owner has no default card, then the new card will become the default. However, if the owner already has a default, then it will not change. To change the default, you should update the customer to have a new `default_source`.

# delete(client, customer, id, params \\ %{}, opts \\ [])

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

Delete a customer source

Delete a specified source for a given customer.

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

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

List sources for a specified customer.

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

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

Retrieve a specified source for a given customer.

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

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

Update a specified source for a given customer.

# verify(client, customer, id, params \\ %{}, opts \\ [])

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

Verify a bank account

Verify a specified bank account for a given customer.