stripity_stripe v2.0.0-alpha.5 Stripe.Token
Work with Stripe token objects.
You can:
- Create a token for a Connect customer with a card
- Retrieve a token
Does not yet render lists or take options.
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
Returns the Stripe response mapping of keys to types
Retrieve a token
Types
t()
t :: %Stripe.Token{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) :: {:ok, t} | {:error, Stripe.api_error_struct}
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.
Returns the Stripe response mapping of keys to types.
retrieve(id, opts \\ [])
retrieve(binary, Keyword.t) :: {:ok, t} | {:error, Stripe.api_error_struct}
Retrieve a token.