Liking cljdoc? Tell your friends :D

stripe-clojure.core


get-configclj

Get the current Stripe configuration with sensitive data masked.

Get the current Stripe configuration with sensitive data masked.
sourceraw docstring

init-stripeclj

(init-stripe opts)

Initializes a new Stripe client instance.

Options:

  • :api-key : Stripe API key (required)
  • :api-version : Stripe API version
  • :stripe-account : For Connect, the Stripe account to use
  • :max-network-retries : Maximum number of retries for failed network requests
  • :timeout : Request timeout in milliseconds
  • :protocol : The protocol to use for requests (default: https)
  • :host : Host to connect to (default: api.stripe.com)
  • :port : Port to connect to (default: 443)
  • :rate-limits : Custom rate limits to use

Deprecated options (ignored with warning):

  • :use-connection-pool? : No longer needed, HTTP/2 handles connection management
  • :pool-options : No longer needed, HTTP/2 handles connection management
Initializes a new Stripe client instance.

Options:
- :api-key : Stripe API key (required)
- :api-version : Stripe API version
- :stripe-account : For Connect, the Stripe account to use
- :max-network-retries : Maximum number of retries for failed network requests
- :timeout : Request timeout in milliseconds
- :protocol : The protocol to use for requests (default: https)
- :host : Host to connect to (default: api.stripe.com)
- :port : Port to connect to (default: 443)
- :rate-limits : Custom rate limits to use

Deprecated options (ignored with warning):
- :use-connection-pool? : No longer needed, HTTP/2 handles connection management
- :pool-options : No longer needed, HTTP/2 handles connection management
sourceraw docstring

offclj

(off stripe-client event-type handler)

Remove an event listener from the Stripe client.

Remove an event listener from the Stripe client.
sourceraw docstring

onclj

(on stripe-client event-type handler)

Add an event listener to the Stripe client.

Add an event listener to the Stripe client.
sourceraw docstring

raw-requestclj

(raw-request stripe-client method endpoint)
(raw-request stripe-client method endpoint params)
(raw-request stripe-client method endpoint params opts)

Makes a raw request to an arbitrary Stripe API endpoint. Use for beta features, undocumented endpoints, or when you need to bypass the resource-specific functions.

Arguments: stripe-client - initialized Stripe client method - HTTP method keyword (:get, :post, :delete) endpoint - API path (e.g., "/v1/some_beta_feature") params - request parameters map (optional, default {}) opts - request options map (optional, default {})

Example: (raw-request client :get "/v1/customers" {:limit 10}) (raw-request client :post "/v1/beta/feature" {:param "value"} {:stripe-beta "feature_v1=true"})

Makes a raw request to an arbitrary Stripe API endpoint.
Use for beta features, undocumented endpoints, or when you need
to bypass the resource-specific functions.

Arguments:
  stripe-client - initialized Stripe client
  method        - HTTP method keyword (:get, :post, :delete)
  endpoint      - API path (e.g., "/v1/some_beta_feature")
  params        - request parameters map (optional, default {})
  opts          - request options map (optional, default {})

Example:
  (raw-request client :get "/v1/customers" {:limit 10})
  (raw-request client :post "/v1/beta/feature" {:param "value"} {:stripe-beta "feature_v1=true"})
sourceraw docstring

shutdown-stripe-client!clj

(shutdown-stripe-client! stripe-client)

Shuts down the given Stripe client instance, releasing any internal and pooled resources.

Shuts down the given Stripe client instance, releasing any internal and pooled resources.
sourceraw docstring

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