Securion v0.4.0 Securion.Token View Source

Card tokens creation and deletion.

Prelude to the examples

iex> customer_id = Securion.Customer.create("foo@example.com")

iex> token_id = Securion.Token.create()

Link to this section Summary

Functions

Retrieves an existing token object.

Link to this section Functions

Retrieves an existing token object.

Example

iex> {:ok, token} = Token.create(FakeCards.visa_1())
{:ok, ...}
iex> Token.get(token["id"])
{:ok, ...}