How do you implement recurring payments with PayPal in Spring Boot?
Use the PayPal Subscriptions API with Spring's RestClient: create a plan, start a subscription, send the customer to approve it and verify webhooks.
Spread Your Knowledge. Questions with answers, tutorials and articles, newest first.
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.
Learn how @RequestMapping and the HTTP-method shortcuts map URLs to controller methods in Spring Boot, with path variables, params and content negotiation.
@RestController marks a Spring class whose methods write return values to the response body. See how it differs from @Controller, with examples.
A complete Spring Boot REST API with Spring Data JPA, CRUD endpoints, validation, consistent error responses and tests.
A gRPC load balancer turns resolved addresses into subchannels and picks one per RPC. See pick_first, round_robin, xDS and how to write a custom policy.
@Primary tells Spring which bean to inject by default when several share a type. A Spring Boot two-DataSource example shows how it works with @Qualifier.