stripe-java
CLAUDE.md1k starsChanged 9 months agoMITView on GitHub
It's ok not to put comments on/in a function if their addition wouldn't meaningfully clarify anything.
Trending
More talk lately.about the whole repository
Who's talking about stripe/stripe-java
- MpofuSlim/ticketing-system“deps(deps): bump com.stripe:stripe-java from 25.1.0 to 32.2.0”GitHub · Jun 2, 2026 · 2 reactions
- meilisearch/meilisearch-java“A better way to add documents in the Getting Started example?”GitHub · Nov 30, 2020 · 2 reactions
- NhacDelivery/backend-nhac“chore(deps): bump com.stripe:stripe-java from 33.4.2 to 34.0.0”GitHub · Oct 5, 2026 · 1 reactions
- NhacDelivery/backend-nhac“chore(deps): bump the minor-and-patch group across 1 directory with 7 updates”GitHub · Sep 16, 2026 · 1 reactions
- NhacDelivery/backend-nhac“chore(deps): bump the minor-and-patch group across 1 directory with 7 updates”GitHub · Sep 14, 2026 · 1 reactions
The biggest 5 of 19 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 19
Talked about on GitHub and Hacker News (19 times).
On GitHub · 18
- Jun 2, 2026deps(deps): bump com.stripe:stripe-java from 25.1.0 to 32.2.0 — MpofuSlim/ticketing-system2 reactions · 2 comments
- Nov 30, 2020A better way to add documents in the Getting Started example? — meilisearch/meilisearch-java2 reactions · 3 comments
- Oct 5, 2026chore(deps): bump com.stripe:stripe-java from 33.4.2 to 34.0.0 — NhacDelivery/backend-nhac1 reaction · 2 comments
- Sep 16, 2026chore(deps): bump the minor-and-patch group across 1 directory with 7 updates — NhacDelivery/backend-nhac1 reaction · 2 comments
- Sep 14, 2026chore(deps): bump the minor-and-patch group across 1 directory with 7 updates — NhacDelivery/backend-nhac1 reaction · 4 comments
13 more on GitHub
- Sep 7, 2026chore(deps): bump the minor-and-patch group across 1 directory with 6 updates — NhacDelivery/backend-nhac1 reaction · 4 comments
- Sep 1, 2026Bump com.stripe:stripe-java from 33.3.0 to 33.4.0 — Labs64/labs64.io-payment-gateway1 reaction · 1 comment
- Aug 31, 2026chore(deps): bump the minor-and-patch group across 1 directory with 5 updates — NhacDelivery/backend-nhac1 reaction · 4 comments
- Jun 8, 2026deps(deps): bump com.stripe:stripe-java from 32.2.0 to 33.0.0 — MpofuSlim/ticketing-system1 reaction · 3 comments
- Feb 2, 2026deps(deps): bump com.stripe:stripe-java from 31.1.0 to 31.3.0 — Abega1642/unfaked-api1 reaction · 2 comments
- Jan 19, 2026deps(deps): bump com.stripe:stripe-java from 31.1.0 to 31.2.0 — Abega1642/unfaked-api1 reaction · 2 comments
- Dec 23, 2025deps(deps): bump com.stripe:stripe-java from 31.0.0 to 31.1.0 — Abega1642/unfaked-api1 reaction · 1 comment
- Jun 4, 2021Add support for reflection access filter — google/gson1 reaction · 5 comments
- May 4, 2020Add support for `PaymentMethodData` on `PaymentIntent` — stripe/stripe-go1 reaction · 5 comments
- Apr 29, 2019Configure Gradle signing plugin to use gpg-agent — stripe/stripe-android1 reaction · 1 comment
- May 22, 2026deps(deps): bump com.stripe:stripe-java from 25.1.0 to 32.1.0 — MpofuSlim/ticketing-system0 reactions · 3 comments
- Mar 9, 2026deps(deps): bump com.stripe:stripe-java from 31.1.0 to 31.4.1 — Abega1642/unfaked-api0 reactions · 1 comment
- Mar 2, 2026deps(deps): bump com.stripe:stripe-java from 31.1.0 to 31.4.0 — Abega1642/unfaked-api0 reactions · 2 comments
On Hacker News · 1
- May 28, 2013Accept Payments with Stripe's Java Library, Available through Maven Central1 point
The file
We split this CLAUDE.md into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
Run all tests: just test
- Very specific: line 6
Run a single test class: just test-one com.stripe.net.HttpClientTest
- Distinctive: line 28
If something in a generated file/range needs to be updated, add a summary of the change to your report but don't attempt to edit it …
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
stripe-java
Testing
- Run all tests:
just test - Run a single test class:
just test-one com.stripe.net.HttpClientTest - Pass extra Gradle args:
just test --tests com.stripe.SomeTest
Formatting
- Format:
just format(uses Spotless via Gradle) - Format check:
just format-check
Key Locations
- HTTP client abstract base (retry logic):
src/main/java/com/stripe/net/HttpClient.java - HTTP implementation:
src/main/java/com/stripe/net/HttpURLConnectionClient.java - Header management:
src/main/java/com/stripe/net/HttpHeaders.java - Request building:
src/main/java/com/stripe/net/StripeRequest.java - Authentication:
src/main/java/com/stripe/net/Authenticator.java,BearerTokenAuthenticator.java - Response getter (request dispatch):
src/main/java/com/stripe/net/LiveStripeResponseGetter.java - Main config/version:
src/main/java/com/stripe/Stripe.java - Client class:
src/main/java/com/stripe/StripeClient.java
Generated Code
- Files containing
File generated from our OpenAPI specat the top are generated; do not edit. Similarly, any code block starting withThe beginning of the section generated from our OpenAPI specis generated and should not be edited directly.- If something in a generated file/range needs to be updated, add a summary of the change to your report but don't attempt to edit it directly.
- Resource model classes under
src/main/java/com/stripe/model/are largely generated. - The
net/package (HTTP client, headers, request/response) is NOT generated.
Conventions
- Uses Java's built-in
HttpURLConnectionfor HTTP - Requires JDK 17 to build
- Gradle build system
- Work is not complete until
just testpasses
Comments
- Comments MUST only be used to:
- Document a function
- Explain the WHY of a piece of code
- Explain a particularly complicated piece of code
- Comments NEVER should be used to:
- Say what used to be there. That's no longer relevant!
- Explain the WHAT of a piece of code (unless it's very non-obvious)
It's ok not to put comments on/in a function if their addition wouldn't meaningfully clarify anything.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

