stripe_client 0.1.1
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 fromstripe-node19.3.1: jittered exponential backoff,Retry-Afterandstripe-should-retrysupport, and an idempotency key on every POST. Request bodies follow Stripe's bracket-notation form encoding, verified against fixtures captured fromstripe-nodeitself. - Sealed
StripeErrorhierarchy covering every error type the API returns. StripeWebhooks.constructEventfor verifying and decoding webhook deliveries, with constant-time comparison and secret rotation.- Operations on
checkout.sessions,billingPortal.sessions,customers,subscriptions,promotionCodes,invoices,pricesandproducts— see the README for the exact list. Subscription.currentPeriodStart/currentPeriodEndread the period offSubscriptionItem, where Stripe moved it in API version2025-03-31.basil.Invoice.totalTaxAmountreads eithertotal_taxesor the legacytotal_tax_amounts, whichever shape the account's API version returns.