stripity_stripe v2.0.0-alpha.6 Stripe.Token
Work with Stripe token objects.
You can:
- Create a token for a Connect customer with a card
- Create a token with all options - Only for Unit Tests with Stripe
- 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
Create a token for a Connect customer with a card belonging to the platform customer
Create a token for a Connect customer using the default card
Retrieve a token
Types
t :: %Stripe.Token{card: term, client_ip: term, created: term, id: term, livemode: term, object: term, type: term, used: term}
Functions
Create a token.
WARNING : This function is mainly for testing purposes only, you should not use it on a production server, unless you are able to transfer and store credit card data on your server in a PCI compliance way. Use the Stripe.js library on the client device instead.
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 the platform customer.
You must pass in the account number for the Stripe Connect account
in opts
.
create_with_default_card(String.t, Keyword.t) :: {:ok, t} | {:error, Stripe.api_error_struct}
Create a token for a Connect customer using the default card.
You must pass in the account number for the Stripe Connect account
in opts
.
retrieve(binary, Keyword.t) :: {:ok, t} | {:error, Stripe.api_error_struct}
Retrieve a token.