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

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

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

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

valid-event-typesclj

Set of supported event types

Set of supported event types
sourceraw docstring

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

× close