Skip to main content

Laravel demo

Build a Laravel storefront with embedded, modal, and hosted Checkout. Laravel creates the order on the server.

What you’ll build

  • A Laravel 12 storefront with request validation and an accessible bag
  • Order creation with the Inttegro PHP SDK
  • Server-only credentials and idempotency
  • Blade views progressively enhanced with @inttegro/js

See the flow

The gallery shows one server-created order in each Checkout presentation. The PHP SDK, API key, and trusted price remain on the server.

Select any image to view it full screen.

Run the demo

Install PHP and Composer, install the dependencies, create the application key, and start Artisan. The released README has the exact commands.

Key files

  1. CheckoutService.php creates the order.
  2. CheckoutController.php validates the request and returns JSON or a 303 redirect.
  3. public/checkout-presentations.js presents Checkout in all three modes.

Before you ship

Keep INTTEGRO_API_KEY out of public configuration. Store the cart and Inttegro order IDs together, then verify payment before fulfillment.

Next