(api-call
{:keys [params client-options token account method endpoint out-ch
throw-on-error?]
:or {params {} client-options {} account *connect-account* token (api-token)}
:as opts})
Call an API method on Stripe. If an output channel is supplied, the method will place the result in that channel; if not, returns synchronously.
Call an API method on Stripe. If an output channel is supplied, the method will place the result in that channel; if not, returns synchronously.
Is the argument a valid api call map?
Is the argument a valid api call map?
(defapi sym method)
Generates a synchronous and async version of the same function.
Generates a synchronous and async version of the same function.
(delete-req endpoint__10617__auto__)
(delete-req endpoint__10617__auto__ opts__10618__auto__)
(get-req endpoint__10617__auto__)
(get-req endpoint__10617__auto__ opts__10618__auto__)
(method-url method)
URL for calling a method.
URL for calling a method.
(post-req endpoint__10617__auto__)
(post-req endpoint__10617__auto__ opts__10618__auto__)
(prepare-params token method params opts)
Returns a parameter map suitable for feeding in to a request to Stripe.
opts
is a set of options for http-kit's client. These kick out the
defaults.
params
is the parameters for the stripe API calls.
Returns a parameter map suitable for feeding in to a request to Stripe. `opts` is a set of options for http-kit's client. These kick out the defaults. `params` is the parameters for the stripe API calls.
(request-options? x)
Is the argument a valid request options map?
Is the argument a valid request options map?
(use-api-version! s)
Permanently sets an API version. The api version can still be overridden on a per-thread basis using with-api-version.
Permanently sets an API version. The api version can still be overridden on a per-thread basis using with-api-version.
(use-connect-account! s)
Permanently sets an API version. The api version can still be overridden on a per-thread basis using with-connect-account.
Permanently sets an API version. The api version can still be overridden on a per-thread basis using with-connect-account.
(use-token! t)
Permanently sets a base token. The token can still be overridden on a per-thread basis using with-token.
Permanently sets a base token. The token can still be overridden on a per-thread basis using with-token.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close