Skip to main content

stripe_client 0.1.1 copy "stripe_client: ^0.1.1" to clipboard
stripe_client: ^0.1.1 copied to clipboard

Pure Dart client for the Stripe API: typed resources, webhook signature verification, automatic retries and idempotency keys. Runs on Dart servers, CLIs and Cloud Functions.

0.1.1 #

  • The README and package description now say this client belongs on servers, Cloud Functions and CLIs, never inside a Flutter app, because it uses the secret API key.
  • Add CONTRIBUTING.md, and pub/CI badges to the README.

0.1.0 #

Initial release.

  • HTTP transport (StripeClient) ported from stripe-node 19.3.1: jittered exponential backoff, Retry-After and stripe-should-retry support, and an idempotency key on every POST. Request bodies follow Stripe's bracket-notation form encoding, verified against fixtures captured from stripe-node itself.
  • Sealed StripeError hierarchy covering every error type the API returns.
  • StripeWebhooks.constructEvent for verifying and decoding webhook deliveries, with constant-time comparison and secret rotation.
  • Operations on checkout.sessions, billingPortal.sessions, customers, subscriptions, promotionCodes, invoices, prices and products — see the README for the exact list.
  • Subscription.currentPeriodStart / currentPeriodEnd read the period off SubscriptionItem, where Stripe moved it in API version 2025-03-31.basil.
  • Invoice.totalTaxAmount reads either total_taxes or the legacy total_tax_amounts, whichever shape the account's API version returns.
0
likes
160
points
470
downloads

Documentation

API reference

Publisher

verified publisherfullphysio.com

Weekly Downloads

Pure Dart client for the Stripe API: typed resources, webhook signature verification, automatic retries and idempotency keys. Runs on Dart servers, CLIs and Cloud Functions.

Repository (GitHub)
View/report issues
Contributing

Topics

#stripe #payments #billing #api

License

MIT (license)

Dependencies

crypto, http, meta

More

Packages that depend on stripe_client