Search documentation of stripe_elixir

# StripeElixir.Services.TestHelpers.Issuing.AuthorizationService (stripe_elixir v0.1.0)

Copy Markdown View Source

Authorization API operations.

## Summary

### Functions

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

Capture a test-mode authorization

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

Create a test-mode authorization

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

Expire a test-mode authorization

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

Finalize a test-mode authorization's amount

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

Increment a test-mode authorization

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

Respond to fraud challenge

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

Reverse a test-mode authorization

## Functions

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

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

Capture a test-mode authorization

Capture a test-mode authorization.

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

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

Create a test-mode authorization

Create a test-mode authorization.

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

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

Expire a test-mode authorization

Expire a test-mode Authorization.

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

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

Finalize a test-mode authorization's amount

Finalize the amount on an Authorization prior to capture, when the initial authorization was for an estimated amount.

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

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

Increment a test-mode authorization

Increment a test-mode Authorization.

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

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

Respond to fraud challenge

Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy.

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

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

Reverse a test-mode authorization

Reverse a test-mode Authorization.