Common functions for Stripe API
Common functions for Stripe API
(address & elements)
Defines a credit card address. Optionally accepts the following parameters: A first line of the address (see address1). A second line of the address (see address2). A zip code (see zip). A state (see state). A country (see country).
Defines a credit card address. Optionally accepts the following parameters: A first line of the address (see address1). A second line of the address (see address2). A zip code (see zip). A state (see state). A country (see country).
(address2 addr)
Defines the second line of a credit card address.
Defines the second line of a credit card address.
(amount a)
Defines an amount of money, as an integer.
Defines an amount of money, as an integer.
(card card-token)
(card number expiration & extra-info)
Creates a new credit card. It accepts either: A credit card token (see cards/create-token or stripe.js) or A credit card definition, composed of: Required: credit card number (see number) Required: expiration date (see expiration) Optional: credit card verification code (see cvc) Optional: cardholder's name (see owner-name) Optional: address line 1 (see address1) Optional: address line 2 (see address2) Optional: address zip code (see zip) Optional: address state (see state) Optional: address country (see country)
Creates a new credit card. It accepts either: A credit card token (see cards/create-token or stripe.js) or A credit card definition, composed of: Required: credit card number (see number) Required: expiration date (see expiration) Optional: credit card verification code (see cvc) Optional: cardholder's name (see owner-name) Optional: address line 1 (see address1) Optional: address line 2 (see address2) Optional: address zip code (see zip) Optional: address state (see state) Optional: address country (see country)
(country addr-country)
Defines the country of a credit card address.
Defines the country of a credit card address.
(currency c)
Defines a currency, for example 'usd'.
Defines a currency, for example 'usd'.
(customer customer-id)
Creates the data for a customer identifier
Creates the data for a customer identifier
(cvc v)
Defines the card verification code (CVC) of a credit card. Requires the code as parameter.
Defines the card verification code (CVC) of a credit card. Requires the code as parameter.
(description d)
Creates the description of an element.
Creates the description of an element.
(elem-name n)
Defines the name of an element.
Defines the name of an element.
Executes a Stripe API operation. All operations are defined using other clj-stripe functions that return data structures representing API calls, but that do not execute them. For actually making the calls to the Stripe servers the execute function must be used. execute expects a Stripe authentication token in the context, use the macro with-token to set the token and wrap one or several execute calls.
Executes a Stripe API operation. All operations are defined using other clj-stripe functions that return data structures representing API calls, but that do not execute them. For actually making the calls to the Stripe servers the execute function must be used. execute expects a Stripe authentication token in the context, use the macro with-token to set the token and wrap one or several execute calls.
(expiration month year)
Defines the expiration date of a credit card. Requires the month and the year of expiration.
Defines the expiration date of a credit card. Requires the month and the year of expiration.
(limit-count c)
Defines a count value, for selecting how many elements to retrieve from a list.
Defines a count value, for selecting how many elements to retrieve from a list.
(money-quantity a c)
Defines a quantity of money, as a pair of amount and currency.
Defines a quantity of money, as a pair of amount and currency.
(number n)
Defines the number of a credit card. Requires the number as parameter.
Defines the number of a credit card. Requires the number as parameter.
(offset o)
Defines an offset, for selecting where to start retrieving the elements of a list.
Defines an offset, for selecting where to start retrieving the elements of a list.
(owner-name n)
Defines the name of an element.
Defines the name of an element.
(plan p)
Defines the ID of a subscription plan.
Defines the ID of a subscription plan.
(position c o)
Defines an interval as a pair of count (see limit-count) and offset (see offset).
Defines an interval as a pair of count (see limit-count) and offset (see offset).
(state addr-state)
Defines the state of a credit card address.
Defines the state of a credit card address.
(with-token token & body)
Binds the specified Stripe authentication token to the stripe-token variable and executes the body.
Binds the specified Stripe authentication token to the stripe-token variable and executes the body.
(zip zipcode)
Defines the zip code of a credit card address.
Defines the zip code of a credit card address.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close