Liking cljdoc? Tell your friends :D

stream.clojure.stripe.request


*stripe-base-url*clj

source

*stripe-version*clj

source

build-form-bodyclj

(build-form-body params)

Builds form-urlencoded body from params map.

Builds form-urlencoded body from params map.
sourceraw docstring

build-query-stringclj

(build-query-string params)

Builds URL query string from params map.

Builds URL query string from params map.
sourceraw docstring

clientclj

source

flatten-paramsclj

(flatten-params params)
(flatten-params params prefix)

Flattens nested maps into bracket notation for Stripe API. {:foo 1 :bar {:baz 2}} => [["foo" 1] ["bar[baz]" 2]]

Flattens nested maps into bracket notation for Stripe API.
{:foo 1 :bar {:baz 2}} => [["foo" 1] ["bar[baz]" 2]]
sourceraw docstring

interpolate-endpointclj

(interpolate-endpoint endpoint path-params)

Replaces path parameter placeholders in endpoint template.

Replaces path parameter placeholders in endpoint template.
sourceraw docstring

json-mapperclj

Object mapper that converts keys to keywords on read.

Object mapper that converts keys to keywords on read.
sourceraw docstring

sdk-versionclj

source

sendclj

(send method
      url
      {:keys [headers body timeout query-params as]
       :or {headers {} timeout 30 as :json}})

Sends an HTTP request. Returns success map or anomaly map on error.

Options: :headers - Additional headers map :body - Request body (map for form encoding, string for raw) :query-params - URL query parameters :timeout - Request timeout in seconds (default: 30) :as - Response format, :json (default) or :raw

Success: {:status 2xx :body parsed-json :stripe/request-id "req_xxx"} Error: {:cognitect.anomalies/category ... :stripe/type ... etc}

Sends an HTTP request. Returns success map or anomaly map on error.

Options:
  :headers      - Additional headers map
  :body         - Request body (map for form encoding, string for raw)
  :query-params - URL query parameters
  :timeout      - Request timeout in seconds (default: 30)
  :as           - Response format, :json (default) or :raw

Success: {:status 2xx :body parsed-json :stripe/request-id "req_xxx"}
Error:   {:cognitect.anomalies/category ... :stripe/type ... etc}
sourceraw docstring

stripe-requestclj

(stripe-request method params)

Makes a request to the Stripe API.

Params: :endpoint - API endpoint path (e.g. "/v1/customers") :path-params - Map of path parameter replacements :query-params - Map of query parameters :body - Request body (for POST/PUT) :idempotency-key - Optional idempotency key for safe retries

Returns success map or anomaly map on error.

Makes a request to the Stripe API.

Params:
  :endpoint      - API endpoint path (e.g. "/v1/customers")
  :path-params   - Map of path parameter replacements
  :query-params  - Map of query parameters
  :body          - Request body (for POST/PUT)
  :idempotency-key - Optional idempotency key for safe retries

Returns success map or anomaly map on error.
sourceraw docstring

user-agentclj

source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close