livery_stripe_setup_intent (livery_stripe v0.1.0)

View Source

Stripe SetupIntents API (save a payment method for future use).

Summary

Functions

cancel(Client, Id)

-spec cancel(livery_client:client(), binary()) -> {ok, map()} | {error, term()}.

confirm(Client, Id)

-spec confirm(livery_client:client(), binary()) -> {ok, map()} | {error, term()}.

confirm(Client, Id, Params)

-spec confirm(livery_client:client(), binary(), map() | list()) -> {ok, map()} | {error, term()}.

create(Client, Params)

-spec create(livery_client:client(), map() | list()) -> {ok, map()} | {error, term()}.

create(Client, Params, Opts)

-spec create(livery_client:client(), map() | list(), map()) -> {ok, map()} | {error, term()}.

Like create/2 with request options (idempotency_key, etc.).

list(Client)

-spec list(livery_client:client()) -> {ok, map()} | {error, term()}.

list(Client, Params)

-spec list(livery_client:client(), map() | list()) -> {ok, map()} | {error, term()}.

retrieve(Client, Id)

-spec retrieve(livery_client:client(), binary()) -> {ok, map()} | {error, term()}.