Get the current Stripe configuration with sensitive data masked.
Get the current Stripe configuration with sensitive data masked.
(init-stripe opts)Initializes a new Stripe client instance.
Options:
Deprecated options (ignored with warning):
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
(off stripe-client event-type handler)Remove an event listener from the Stripe client.
Remove an event listener from the Stripe client.
(on stripe-client event-type handler)Add an event listener to the Stripe client.
Add an event listener to the Stripe client.
(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"})(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.
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 |