Production-Grade Payment Infrastructure

Intelligent Payment
Processing Platform

Event-sourced payment gateway with real-time ML fraud detection, double-entry ledger, and PCI DSS 4.0-aware security controls. Built with Rails 8, Next.js 16, and LightGBM.

418+
Test Cases
0
Brakeman Warnings
<5ms
Fraud Scoring
100%
Mutation Coverage

Production-Grade Engineering

Every component is built to the same standards you would find in a real payment processor — from cryptographic security to ML-powered fraud intelligence.

Payment Processing

Full lifecycle management — authorize, capture, refund, void. Event-sourced state machine ensures every transition is auditable and deterministic.

ML Fraud Detection

LightGBM model trained on 200K+ synthetic transactions achieves AUC 1.0. SHAP explanations provide feature-level transparency for every risk score.

Double-Entry Ledger

Every financial movement creates balanced debit/credit entries. Append-only design with database-level invariants ensures the books always balance.

Security-First Architecture

AES-256-GCM encryption at rest, blind index search, JWT + MFA authentication, rate limiting, and PCI DSS 4.0-aware controls. Brakeman clean.

Event Sourcing & CQRS

Rails Event Store captures every state change as an immutable event. CQRS separates read/write models. Saga orchestration manages complex workflows.

Webhook Delivery

Real-time notifications with HMAC-SHA256 signatures, exponential backoff retry (5 attempts over 24h), and delivery tracking in the dashboard.

Modular Monolith Architecture

PayForge is structured as a modular monolith with domain-driven boundaries. Each domain — Payments, Ledger, Fraud, Merchants, Webhooks — is isolated with its own models, services, and policies, communicating through an internal event bus powered by Rails Event Store.

Event-sourced payment aggregates with replay capability
CQRS read models for optimized queries
Saga orchestration for multi-step workflows
Double-entry ledger with database-level invariants
Append-only audit trail via PaperTrail + events

Technology Stack

Built with modern, battle-tested technologies

Backend
Ruby on Rails 8.1
Frontend
Next.js 16 + React 19
Database
PostgreSQL
Cache / Queues
Redis + Sidekiq
ML Engine
LightGBM + SHAP
Event Sourcing
Rails Event Store
Authentication
Devise + JWT
Encryption
Lockbox + Blind Index

Explore the Platform

Sign in with the demo account to explore real-time dashboards, process test payments, and review ML fraud scoring with SHAP explanations.

Demo: admin@payforge.dev / PayForge2026Secure