Search documentation of tiger_stripe

# Stripe.Services.TestHelpers.Issuing.CardService (tiger_stripe v0.1.1)

Copy Markdown View Source

Card API operations.

## Summary

### Functions

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

Deliver a testmode card

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

Fail a testmode card

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

Return a testmode card

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

Ship a testmode card

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

Submit a testmode card

## Functions

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

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

Deliver a testmode card

Updates the shipping status of the specified Issuing `Card` object to `delivered`.

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

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

Fail a testmode card

Updates the shipping status of the specified Issuing `Card` object to `failure`.

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

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

Return a testmode card

Updates the shipping status of the specified Issuing `Card` object to `returned`.

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

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

Ship a testmode card

Updates the shipping status of the specified Issuing `Card` object to `shipped`.

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

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

Submit a testmode card

Updates the shipping status of the specified Issuing `Card` object to `submitted`. This method requires Stripe Version ‘2024-09-30.acacia’ or later.