Skip to main content

Go demo

Build an invoice portal with Go’s net/http package. Customers can review an invoice and pay it with embedded, modal, or hosted Checkout.

What you’ll build

  • An idiomatic net/http application with no web framework dependency
  • Typed order construction with the Inttegro Go SDK
  • Input validation, idempotency, and safe public errors
  • Go html/template views progressively enhanced with @inttegro/js

See the flow

The gallery shows the same server-created order in each Checkout presentation. The API key and invoice mapping remain on the server.

Select any image to view it full screen.

Run the demo

Install Go 1.25, set the environment values, and run the application. The released README has the exact commands.

Key files

main.go contains validation, order creation, errors, and the response.

static/checkout-presentations.js presents Checkout in all three modes.

Before you ship

Store the invoice and Inttegro order IDs together. Verify payment on the server before marking the invoice paid.

Next