Astro demo
Build an Astro contribution page with embedded, modal, and hosted Checkout. Astro creates the order on the server.
What you’ll build
- Astro components, server endpoints, and standalone Node deployment
- Typed Product lookup and Order creation with the Inttegro TypeScript SDK
- A stable idempotency key and readable order number
- Progressive enhancement with
@inttegro/js - A customer-selected Price with trusted server-side amount validation
See the flow
The gallery shows the same order in each Checkout presentation. The browser receives only the finalized order ID.
- Desktop
- Mobile
Select any image to view it full screen.
Run the demo
Add your API key, Product ID, Price ID, and public origin. The released README has the local, Docker, build, and test commands.
Key files
src/lib/checkout.tsvalidates the amount against the catalog Price and creates the order.src/pages/checkout.tshandles the request and safe errors.src/layouts/BaseLayout.astrorenders the shared page layout.public/checkout-presentations.jspresents Checkout in all three modes.
Before you ship
Store the contribution, idempotency key, and Inttegro order ID. Update totals and send receipts only after server-side payment verification.