(build-form-body params)Builds form-urlencoded body from params map.
Builds form-urlencoded body from params map.
(build-query-string params)Builds URL query string from params map.
Builds URL query string from params map.
(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]](interpolate-endpoint endpoint path-params)Replaces path parameter placeholders in endpoint template.
Replaces path parameter placeholders in endpoint template.
Object mapper that converts keys to keywords on read.
Object mapper that converts keys to keywords on read.
(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}(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |