Liking cljdoc? Tell your friends :D

stream.clojure.stripe.api.account

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.account-links

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.account-sessions

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.apple-pay

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.apps

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.balance

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.balance-settings

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.balance-transactions

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.confirmation-tokens

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.country-specs

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.coupons

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.customer-sessions

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.customers

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.disputes

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.entitlements

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.ephemeral-keys

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.events

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.exchange-rates

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.external-accounts

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.fabric

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.file-links

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.files

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.forwarding

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.invoice-payments

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.invoiceitems

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.link-account-sessions

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.mandates

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.payment-attempt-records

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.payouts

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.plans

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.prices

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.promotion-codes

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.refunds

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.reporting

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.reviews

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.setup-attempts

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.shipping-rates

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.sigma

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.tax-codes

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.tax-ids

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.tax-rates

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.test-helpers

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.tokens

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.api.topups

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

stream.clojure.stripe.error

Structured error handling using Cognitect anomalies pattern.

Anomaly categories map to Stripe/HTTP errors:

  • :cognitect.anomalies/busy - 429 Rate limit
  • :cognitect.anomalies/unavailable - 5xx Server errors, connection errors
  • :cognitect.anomalies/interrupted - Request timeout
  • :cognitect.anomalies/incorrect - 400 Invalid request, card errors
  • :cognitect.anomalies/forbidden - 401/403 Auth errors
  • :cognitect.anomalies/not-found - 404 Resource not found
  • :cognitect.anomalies/conflict - 409 Idempotency errors
  • :cognitect.anomalies/fault - Unexpected errors, parse failures
Structured error handling using Cognitect anomalies pattern.

Anomaly categories map to Stripe/HTTP errors:
- :cognitect.anomalies/busy        - 429 Rate limit
- :cognitect.anomalies/unavailable - 5xx Server errors, connection errors
- :cognitect.anomalies/interrupted - Request timeout
- :cognitect.anomalies/incorrect   - 400 Invalid request, card errors
- :cognitect.anomalies/forbidden   - 401/403 Auth errors
- :cognitect.anomalies/not-found   - 404 Resource not found
- :cognitect.anomalies/conflict    - 409 Idempotency errors
- :cognitect.anomalies/fault       - Unexpected errors, parse failures
raw docstring

stream.clojure.stripe.webhook

Webhook signature verification for Stripe webhooks.

Stripe signs webhook events using HMAC-SHA256. This namespace provides functions to verify signatures and construct verified event objects.

Usage:

(require '[stream.clojure.stripe.webhook :as webhook])

;; In your HTTP handler
(let [payload (slurp (:body request))
      sig-header (get-in request [:headers "stripe-signature"])
      result (webhook/construct-event payload sig-header "whsec_xxx")]
  (if (webhook/verification-error? result)
    {:status 400 :body "Invalid signature"}
    (process-event result)))
Webhook signature verification for Stripe webhooks.

Stripe signs webhook events using HMAC-SHA256. This namespace provides
functions to verify signatures and construct verified event objects.

Usage:
```clojure
(require '[stream.clojure.stripe.webhook :as webhook])

;; In your HTTP handler
(let [payload (slurp (:body request))
      sig-header (get-in request [:headers "stripe-signature"])
      result (webhook/construct-event payload sig-header "whsec_xxx")]
  (if (webhook/verification-error? result)
    {:status 400 :body "Invalid signature"}
    (process-event result)))
```
raw 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