How do you implement subscription payments with Stripe in Spring Boot?
Build recurring Stripe billing in Spring Boot: create a subscription Checkout Session, verify webhooks and let customers manage plans in the portal.
2,886 posts about Java: questions with answers, tutorials and articles, newest first.
Build recurring Stripe billing in Spring Boot: create a subscription Checkout Session, verify webhooks and let customers manage plans in the portal.
StripeClient is the Stripe Java SDK entry point, not a Spring class. Configure it as a bean, create payments and subscriptions, and verify webhooks.
Add stripe-java to Spring Boot, create PaymentIntents on the server, verify webhooks against the raw body, and use Checkout for subscriptions.
No standard @Webhook annotation exists. See how payment webhooks really work in Spring Boot: raw body, signature verification, idempotent handling and fast responses.
Use PayPal webhooks to receive payment events in Spring Boot, verify signatures with the PayPal API and process events safely. IPN is covered as legacy.
Use the PayPal Subscriptions API with Spring's RestClient: create a plan, start a subscription, send the customer to approve it and verify webhooks.
A PayPalClient is your own wrapper around PayPal's REST API. See how it handles authentication, order creation and capture in Spring Boot, using the current Orders v2 API.
Integrate PayPal into Spring Boot with the Orders v2 REST API and RestClient: create, approve and capture payments, with sandbox testing and hardening tips.
Throttle outgoing calls with Resilience4j, retry 429 responses using Retry-After and backoff, and protect your Spring Boot service.
Retry failing API calls in Spring Boot with @Retryable, RetryTemplate or Resilience4j, using exponential backoff, timeouts and fallbacks.
The client_credentials grant is the OAuth 2.0 flow for machine-to-machine access. Learn when to use it, how the flow works and how to secure it.
Configure an OAuth 2.0 client in Spring Boot 3, sign users in, and call third-party APIs with refreshed access tokens using the SecurityFilterChain style.
There is no spring-boot-starter-stomp. STOMP support in Spring Boot comes from spring-boot-starter-websocket plus the message broker configuration.
Secure a Spring Boot REST API with SecurityFilterChain: HTTP Basic, JWT bearer tokens through the OAuth2 resource server, OAuth2 providers and method-level rules.
WebClient is how a Spring WebFlux application consumes external APIs without blocking. See configuration, parallel calls, error handling, paging and testing.
Use RestClient, WebClient or declarative @HttpExchange clients to call external APIs from Spring Boot, with timeouts, error mapping and resilience.
Use grpc-java's in-process transport and StreamRecorder to test Spring Boot gRPC services without ports or hand-written stub mocks.
Unit test the service with Mockito, then call it through an in-process gRPC server and a real stub to verify responses, status codes and interceptors.
Map GET, POST, PUT, PATCH and DELETE in Spring with @RequestMapping or its shortcut annotations, and narrow mappings with consumes, produces and params.
@RequestMapping connects HTTP requests to Spring Boot controller methods. See class and method mapping, HTTP method rules, a CRUD example and common pitfalls.