Liking cljdoc? Tell your friends :D

stripe-clojure.http.client


create-instanceclj

(create-instance opts)

Creates and returns a new Stripe client instance without using any global state.

Options include:

  • :api-key (required),
  • :api-version, :stripe-account, :max-network-retries, :timeout,
  • :protocol (default: "https"),
  • :host (default: "api.stripe.com"), :port (default: 443),
  • :rate-limits,
  • :use-connection-pool? (default: false),
  • :pool-options (if pooling is enabled).

Returns a StripeClientInstance record that implements the StripeClient protocol.

Creates and returns a new Stripe client instance without using any global state.

Options include:
- :api-key (required),
- :api-version, :stripe-account, :max-network-retries, :timeout,
- :protocol (default: "https"),
- :host (default: "api.stripe.com"), :port (default: 443),
- :rate-limits,
- :use-connection-pool? (default: false),
- :pool-options (if pooling is enabled).

Returns a StripeClientInstance record that implements the StripeClient protocol.
sourceraw docstring

mask-client-configclj

(mask-client-config client-config)

Returns the client configuration with sensitive data (like the API key) masked.

Returns the client configuration with sensitive data (like the API key) masked.
sourceraw docstring

merge-client-configclj

(merge-client-config base-config request-opts)

Merges per-request options with the instance's configuration.

Merges per-request options with the instance's configuration.
sourceraw docstring

requestclj

(request instance method endpoint params opts)

Delegates to client/execute-request for backwards compatibility.

Delegates to client/execute-request for backwards compatibility.
sourceraw docstring

shutdown-connection-managerclj

(shutdown-connection-manager client-config)

Shuts down the client connection manager if it exists.

Shuts down the client connection manager if it exists.
sourceraw docstring

StripeClientcljprotocol

Defines the operations for Stripe API client instances.

Defines the operations for Stripe API client instances.

execute-requestclj

(execute-request this method endpoint params opts)

Executes an API request using the instance configuration.

Executes an API request using the instance configuration.

get-client-configclj

(get-client-config this)

Returns the Stripe configuration with sensitive data masked.

Returns the Stripe configuration with sensitive data masked.

shutdownclj

(shutdown this)

Shuts down internal resources (e.g., connection pools).

Shuts down internal resources (e.g., connection pools).
sourceraw docstring

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

× close