Skip to main content

Spring Boot demo

The Spring Boot demo implements Ledgerline, a B2B invoice portal. Spring MVC validates the request, creates a service order with the Java SDK, and redirects the customer to Inttegro Checkout.

About the app

Ledgerline gives service businesses a professional place for clients to review and pay outstanding invoices. The client can see the work being charged for, understand the balance, and complete payment without a back-and-forth exchange with the accounts team.

For the business, the portal makes collection more self-service and keeps the payment tied to the underlying invoice. That reduces manual follow-up and makes completed payments easier to trace and reconcile.

Start with MCP

Connect your MCP client and ask MCP to adapt this invoice flow to your Spring application. It can map the resource methods, builder types, error boundary, and verification tests.

What it demonstrates

  • Spring Boot 4 with Spring MVC, validation, and Thymeleaf
  • Builder-based order creation with the Inttegro Java SDK
  • Server-held credentials, idempotency, correlation, and safe errors
  • A 303 checkout handoff from the invoice portal

Run the demo

The demo requires Java 17 and Maven. Until Java SDK 5.0.0 is published to Maven Central, install it from the parent Commerce checkout first. The released README contains the exact commands and focused test invocation.

Follow the integration

  1. CheckoutService.java constructs the order through Java builders and owns the SDK error boundary.
  2. CheckoutController.java handles validation, correlation, and the checkout redirect.

Production boundary

Store the business invoice and Inttegro order IDs together. Verify payment from the server before marking the invoice paid or releasing services.

Continue