The official Java client library for integrating with the Stripe API to process payments and manage billing.
Stripe Java is the official Java client library for the Stripe API, enabling Java applications to integrate with Stripe's payment processing and financial services. It provides a type-safe, feature-rich interface for handling payments, managing customers, creating subscriptions, and automating billing workflows. The library abstracts the complexities of the Stripe API, allowing developers to focus on building their payment logic.
Java backend developers and engineering teams building applications that require payment processing, subscription management, or financial integrations using Stripe's platform.
Developers choose Stripe Java because it is the officially supported, production-ready library with full API coverage, strong typing, and robust features like automatic retries and configurable timeouts. It offers a modern client pattern (StripeClient) alongside legacy support, ensuring reliability and ease of integration for both new and existing Stripe implementations.
Java library for the Stripe API.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Provides type-safe access to all public Stripe API endpoints, including payments, subscriptions, and invoices, as highlighted in the key features section.
Features configurable automatic retries with idempotency keys for safe retries on network failures, detailed in the configuration examples.
Supports per-request settings for API keys, timeouts, and Stripe Connect, allowing fine-grained control over API calls, as shown in the usage section.
Offers dedicated SDK versions for accessing Stripe's public and private preview features, enabling early adoption of new functionalities, as described in the preview sections.
The library primarily uses synchronous calls with no built-in support for asynchronous or reactive programming, which can hinder performance in high-concurrency applications.
Requires a specific version of Google Gson (2.10.1 or newer), which can lead to conflicts in projects using other JSON libraries or different Gson versions, as noted in the installation instructions.
The legacy pattern is marked for deprecation, forcing existing users to migrate to StripeClient, which involves code changes and potential breaking changes, as warned in the migration guide.