livery_stripe_payment_method (livery_stripe v0.1.0)

View Source

Stripe PaymentMethods API.

Summary

Functions

Attach a payment method to a customer (Params carries customer).

List payment methods; Params should carry customer and type.

Functions

attach(Client, Id, Params)

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

Attach a payment method to a customer (Params carries customer).

detach(Client, Id)

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

list(Client, Params)

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

List payment methods; Params should carry customer and type.

retrieve(Client, Id)

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

update(Client, Id, Params)

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