Skip to main content

Go demo

The Go demo implements Ledgerline, a client invoice portal built with the standard net/http package. Customers review service lines before the server creates an Inttegro-hosted checkout for the outstanding balance.

About the app

Ledgerline gives service businesses a client-facing place to collect outstanding invoices. A client can review the work performed, understand the amount due, and settle the invoice through a clear self-service payment flow.

For the business, it shortens the path from completed work to payment and reduces the need to chase clients manually. Each payment remains connected to the invoice and its service lines, making the result easier to explain and reconcile.

Start with MCP

Connect your MCP client and ask MCP to adapt this invoice flow to your Go service. It can map the order lifecycle and production checks before you copy the compact example.

What it demonstrates

  • An idiomatic net/http application with no web framework dependency
  • Typed order construction with the Inttegro Go SDK
  • Input validation, idempotency, correlation, and safe public errors
  • A 303 handoff from invoice payment to Inttegro Checkout

Run the demo

Install Go 1.25, provide the server environment values, download the module dependencies, and run the application. The released README contains the exact commands and focused Go test invocation.

Follow the integration

main.go keeps validation, order construction, hosted URL selection, errors, correlation, and the redirect visible in one file.

Production boundary

Store the invoice and Inttegro order IDs together. The return page can explain the next step, but settlement and fulfillment must use an authenticated server-side lookup rather than the browser redirect alone.

Continue