oscerd opened a new pull request, #28617: URL: https://github.com/apache/camel/pull/28617
## Backport of #28510 Cherry-pick (`-x`) of the squash commit `ca91c3fa8247c6eec3a20bd6040824d58520c0c4` of #28510 onto `camel-4.22.x`. **Original PR:** #28510 - CAMEL-26318: camel-stripe: StripeProducer should use request options instead of mutating JVM-global Stripe settings **Original author:** @oscerd **Target branch:** `camel-4.22.x` **JIRA:** [CAMEL-26318](https://issues.apache.org/jira/browse/CAMEL-26318) (fix version 4.22.3) ### Changes - `StripeProducer`: construct endpoint-scoped `RequestOptions` carrying `apiKey` and `apiBase` instead of mutating JVM-global `Stripe.apiKey` and `Stripe.overrideApiBase` - Pass `RequestOptions` to all Stripe SDK model calls across all operations - Retain `RequestOptions` across shutdown so in-flight exchanges cannot fall back to global SDK defaults - Throw `IllegalArgumentException` on startup if `apiKey` is missing - Pass `null` params to `Subscription.cancel` to preserve existing behavior of ignoring exchange body - Add `StripeProducerTest` covering `RequestOptions` isolation, startup validation, and global state protection ### Difference from the original The code changes in `StripeProducer.java` and `StripeProducerTest.java` are identical to #28510. The upgrade guide change (`camel-4x-upgrade-guide-4_24.adoc`) was dropped as upgrade guide entries are maintained on `main`. Tested locally with `mvn test` in `components/camel-stripe` (45 tests passed, 41 skipped integration tests). _Claude Code on behalf of oscerd_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
