Code Examples
The following open-source repositories demonstrate end-to-end integrations with the Strictly payment API. They range from a minimal single-file quickstart to a full Angular + NestJS application.
All repositories use the same core integration pattern:
- Collect card data client-side using ZeroGateway.js
- Send the
paymentTokento a backend server - Make the charge or vault request from the server using your API credentials
Choose your starting point
| Repository | Stack | Best for |
|---|---|---|
| ecommerce-integration-js-simple | Plain HTML | Quickest possible integration |
| ecommerce-integration-js-advanced | HTML + Vanilla JS | Styling and CSS customization |
| multi-step-payment-integration | Node.js / Express | Realistic checkout UX |
| ecommerce-integration-api | NestJS | Backend-only / API layer |
| ecommerce-integration-angular | Angular + NestJS | Full-stack production reference |
ecommerce-integration-js-simple
Repository: github.com/strictlyzero/ecommerce-integration-js-simple
The fastest way to see a working integration. A single index.html file that loads ZeroGateway.js,
collects card data, and submits a charge — no build tools or server framework required.
Stack: Pure HTML5 (no dependencies)
Use this if:
- You want to understand the basic flow before building a real integration
- You're embedding a payment form in a simple web page
Run it:
Code
ecommerce-integration-js-advanced
Repository: github.com/strictlyzero/ecommerce-integration-js-advanced
Extends the simple example with custom styling, focus/valid/invalid state CSS, and a whitelist of 80+ allowed CSS properties for secure iframe field customization.
Stack: HTML5 + Vanilla JavaScript
Use this if:
- You need to match the payment form to your brand
- You want to see how ZeroGateway.js
customCss,validCss, andinvalidCssoptions work
Run it:
Code
multi-step-payment-integration
Repository: github.com/strictlyzero/multi-step-payment-integration
A multi-step checkout flow with a Node.js/Express backend. Demonstrates the complete client → tokenize → server → charge pipeline in a realistic UX pattern, with separate steps for contact info, card entry, and confirmation.
Stack: Node.js / Express (backend) + HTML + Vanilla JS (frontend)
Use this if:
- You're building a standard e-commerce checkout
- You want a reference for the server-side charge request and response handling
Run it:
Code
ecommerce-integration-api
Repository: github.com/strictlyzero/ecommerce-integration-api
A NestJS service that acts as the backend API layer for the Angular frontend example below. Useful as a reference for structuring server-side payment logic in a typed TypeScript/NestJS codebase.
Stack: NestJS (TypeScript)
Use this if:
- You're building on NestJS and want a reference for service/module structure
- You want to run the Angular + NestJS full-stack example
Run it:
Code
ecommerce-integration-angular
Repository: github.com/strictlyzero/ecommerce-integration-angular
A full-stack reference with an Angular frontend and the NestJS API above as its backend. The most complete example — shows component structure, service layers, TypeScript types, and end-to-end payment flow.
Stack: Angular (TypeScript) + NestJS backend
Use this if:
- You're building an Angular application
- You want the most production-like reference for architecture
Run it:
Code
Common patterns across all examples
All examples follow the same fundamental security pattern:
Code
Your API credentials (key-hash, Authorization) are only ever used in step 5 — on your server.
They never touch the browser.
Next steps
- Tokenization — understand how ZeroGateway.js works before running the examples
- Best Practices — common mistakes to avoid when adapting the examples for production
- API Reference — full endpoint documentation