This release changes the pinned API version to 2026-03-25.dahlia and contains breaking changes (prefixed with
Please review details for the breaking changes and alternatives in the Stripe API changelog before upgrading.
⚠️ Breaking change: #2182 Add setHttpClient to StripeClientBuilder; clean up apiKey/authenticator coupling⚠️ RemovedRequestOptions.getApiKey(),RequestOptions.RequestOptionsBuilder.getApiKey(), andStripeClient.StripeClientBuilder.getApiKey(). UsegetAuthenticator()instead.- Added
StripeClient.StripeClientBuilder.setHttpClient(HttpClient)to allow injecting a custom HTTP client.
⚠️ Breaking change: #2187 Regenerate with decimal_string enabled for v2 APIs- V2 API decimal fields changed type from
StringtoBigDecimal. Code that reads or writes these fields asStringwill need to useBigDecimalinstead. Affected fields:- V2.Core.Account / V2.Core.AccountPerson:
percentOwnership - PaymentEvaluation.Signals.FraudulentPayment:
score - Params:
AccountCreateParams,PersonCreateParams,AccountTokenCreateParams,PersonTokenCreateParams(all:percentOwnership) - Params:
InvoiceItemCreateParams,InvoiceAddLinesParams,InvoiceUpdateLinesParams,InvoiceCreatePreviewParams(all:quantityDecimal)
- V2.Core.Account / V2.Core.AccountPerson:
- V2 API decimal fields changed type from
⚠️ Breaking change: #2131 Use HTTP status code in V2 errorsRateLimitExceptionnow extendsStripeExceptionrather thanApiException- Non-200 status codes from V2 endpoints will throw a
StripeException(e.g.RateLimitException,InvalidRequestException, etc.) like in V1 instead of a genericApiException
⚠️ Breaking change: #2190 Throw an error when using the wrong webhook parsing method⚠️ Breaking change: #2172 MakeRequestOptions&RawRequestOptionsconstructors private and add Stripe-Request-Trigger header⚠️ Breaking change: #2181 Change Automatic-Module-Name to com.stripe- Changes
Automatic-Module-Namefromstripe.javatocom.stripe. Users withrequires stripe.java;in theirmodule-info.javawill need to update torequires com.stripe;.
- Changes
- #2179 Add runtime support for V2 int64 string-encoded fields