stripity_stripe v2.0.0-alpha.1 Stripe.Token

Work with Stripe token objects.

You can:

  • Create a token for a Connect customer with a card
  • Retrieve a token

Stripe API reference: https://stripe.com/docs/api#token

Summary

Functions

Create a token for a Connect customer with a card belonging to that customer

Retrieve a token

Types

stripe_delete_response()
stripe_delete_response :: :ok | {:error, Exception.t}
stripe_response()
stripe_response :: {:ok, t} | {:error, Exception.t}
t()
t :: %Stripe.Token{bank_account: term, card: term, client_ip: term, created: term, id: term, livemode: term, type: term, used: term}

Functions

create_on_connect_account(customer_id, customer_card_id, list)
create_on_connect_account(String.t, String.t, Keyword.t) :: stripe_response

Create a token for a Connect customer with a card belonging to that customer.

You must pass in the account number for the Stripe Connect account in opts.

retrieve(id, opts \\ [])
retrieve(binary, Keyword.t) :: stripe_response

Retrieve a token.