Liking cljdoc? Tell your friends :D

clj-stripe.common

Common functions for Stripe API

Common functions for Stripe API
raw docstring

*stripe-token*clj

source

addressclj

(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). 
sourceraw docstring

address1clj

(address1 addr)
source

address2clj

(address2 addr)

Defines the second line of a credit card address.

Defines the second line of a credit card address.
sourceraw docstring

amountclj

(amount a)

Defines an amount of money, as an integer.

Defines an amount of money, as an integer.
sourceraw docstring

api-rootclj

source

cardclj

(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)
sourceraw docstring

countryclj

(country addr-country)

Defines the country of a credit card address.

Defines the country of a credit card address.
sourceraw docstring

couponclj

(coupon c)

Defines the name of a coupon.

Defines the name of a coupon.
sourceraw docstring

currencyclj

(currency c)

Defines a currency, for example 'usd'.

Defines a currency, for example 'usd'.
sourceraw docstring

customerclj

(customer customer-id)

Creates the data for a customer identifier

Creates the data for a customer identifier
sourceraw docstring

cvcclj

(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.
sourceraw docstring

descriptionclj

(description d)

Creates the description of an element.

Creates the description of an element.
sourceraw docstring

elem-nameclj

(elem-name n)

Defines the name of an element.

Defines the name of an element.
sourceraw docstring

executecljmultimethod

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.
sourceraw docstring

expirationclj

(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.
sourceraw docstring

limit-countclj

(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.
sourceraw docstring

money-quantityclj

(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.
sourceraw docstring

numberclj

(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.
sourceraw docstring

offsetclj

(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.
sourceraw docstring

owner-nameclj

(owner-name n)

Defines the name of an element.

Defines the name of an element.
sourceraw docstring

planclj

(plan p)

Defines the ID of a subscription plan.

Defines the ID of a subscription plan.
sourceraw docstring

positionclj

(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).
sourceraw docstring

stateclj

(state addr-state)

Defines the state of a credit card address.

Defines the state of a credit card address.
sourceraw docstring

trial-endclj

(trial-end t)
source

with-tokencljmacro

(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.
sourceraw docstring

zipclj

(zip zipcode)

Defines the zip code of a credit card address.

Defines the zip code of a credit card address.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close