# eyadabouzaid/payops---q1 architecture

> Architecture diagram of the GitHub repository eyadabouzaid/payops---q1, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/eyadabouzaid/payops---q1
- Repository: https://github.com/eyadabouzaid/payops---q1

## Overview

PayOps Platform combines a B2B payment control plane, a B2C storefront and financial backend, Kubernetes GitOps operations, and AWS infrastructure. The principal workflow runs from customer checkout through commerce payment initiation, hosted payment processing and routing, then asynchronous webhook settlement and ledger updates. Invoice generation and delivery are documented supporting capabilities. Source excerpts were unavailable, so relationships below rely on the README; application nodes use the exact submodule paths shown in the tree.

Main entry points: [`PayOps`](https://github.com/eyadabouzaid/payops---q1/tree/main/PayOps) (Payment API & Routing), [`Payops-ecommerce`](https://github.com/eyadabouzaid/payops---q1/tree/main/Payops-ecommerce) (Commerce API), [`terraform`](https://github.com/eyadabouzaid/payops---q1/tree/main/terraform) (AWS Infrastructure), [`terraform/modules/eks`](https://github.com/eyadabouzaid/payops---q1/tree/main/terraform/modules/eks) (EKS Cluster)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_payments["Payment Control Plane"]
  node_payops_frontend["Hosted Checkout"]
  node_payops_backend["Payment API &amp; Routing"]
  node_psp_connectors["PSP Connectors"]
  node_payops_worker["Jobs &amp; Webhooks"]
  node_payops_db[("PayOps Database")]
  node_payops_redis[("Redis Queue &amp; Streams")]
end

subgraph group_commerce["Commerce Platform"]
  node_storefront["Storefront &amp; BFF"]
  node_identity["Identity &amp; Cart"]
  node_commerce_api["Commerce API"]
  node_commerce_db[("Commerce Database")]
  node_ecommerce_worker["Maintenance Worker"]
end

subgraph group_operations["Cluster Operations"]
  node_gitops["Kubernetes GitOps"]
end

subgraph group_cloud["AWS Infrastructure"]
  node_terraform_root["AWS Infrastructure"]
  node_eks["EKS Cluster"]
  node_vpc["VPC Networking"]
  node_security["IAM &amp; Security"]
  node_ecr["Container Registry"]
  node_storage[("S3 Storage")]
end

node_customer(("Customer / Merchant"))
node_ingress["ingress-nginx"]

node_customer -->|"browses / checks out"| node_ingress
node_ingress -->|"routes storefront"| node_storefront
node_ingress -->|"routes checkout"| node_payops_frontend
node_storefront -->|"calls BFF services"| node_identity
node_storefront -->|"calls BFF services"| node_commerce_api
node_identity -->|"persists identity data"| node_commerce_db
node_commerce_api -->|"stores orders &amp; ledger"| node_commerce_db
node_ecommerce_worker -->|"calls maintenance"| node_commerce_api
node_commerce_api -->|"creates payment intent"| node_payops_backend
node_payops_frontend -->|"calls payment API"| node_payops_backend
node_payops_backend -->|"reads &amp; writes"| node_payops_db
node_payops_backend -->|"queues jobs &amp; events"| node_payops_redis
node_payops_backend -->|"routes charges"| node_psp_connectors
node_payops_worker -->|"pops jobs"| node_payops_redis
node_payops_worker -->|"reads payment data"| node_payops_db
node_payops_worker -->|"sends signed webhook"| node_commerce_api
node_commerce_api -->|"settles ledger entries"| node_commerce_db
node_storefront -->|"requests invoices"| node_payops_backend
node_terraform_root -->|"provisions cluster"| node_eks
node_terraform_root -->|"provisions network"| node_vpc
node_terraform_root -->|"provisions access"| node_security
node_terraform_root -->|"provisions registry"| node_ecr
node_terraform_root -->|"provisions storage"| node_storage
node_gitops -.->|"deploys workloads"| node_eks

click node_storefront "https://github.com/eyadabouzaid/payops---q1/tree/main/Payops-ecommerce"
click node_identity "https://github.com/eyadabouzaid/payops---q1/tree/main/Payops-ecommerce"
click node_commerce_api "https://github.com/eyadabouzaid/payops---q1/tree/main/Payops-ecommerce"
click node_commerce_db "https://github.com/eyadabouzaid/payops---q1/tree/main/Payops-ecommerce"
click node_ecommerce_worker "https://github.com/eyadabouzaid/payops---q1/tree/main/Payops-ecommerce"
click node_payops_frontend "https://github.com/eyadabouzaid/payops---q1/tree/main/PayOps"
click node_payops_backend "https://github.com/eyadabouzaid/payops---q1/tree/main/PayOps"
click node_psp_connectors "https://github.com/eyadabouzaid/payops---q1/tree/main/PayOps"
click node_payops_worker "https://github.com/eyadabouzaid/payops---q1/tree/main/PayOps"
click node_payops_db "https://github.com/eyadabouzaid/payops---q1/tree/main/PayOps"
click node_payops_redis "https://github.com/eyadabouzaid/payops---q1/tree/main/PayOps"
click node_gitops "https://github.com/eyadabouzaid/payops---q1/tree/main/payops-gitops"
click node_terraform_root "https://github.com/eyadabouzaid/payops---q1/tree/main/terraform"
click node_eks "https://github.com/eyadabouzaid/payops---q1/tree/main/terraform/modules/eks"
click node_vpc "https://github.com/eyadabouzaid/payops---q1/tree/main/terraform/modules/vpc"
click node_security "https://github.com/eyadabouzaid/payops---q1/tree/main/terraform/modules/security"
click node_ecr "https://github.com/eyadabouzaid/payops---q1/tree/main/terraform/modules/ecr"
click node_storage "https://github.com/eyadabouzaid/payops---q1/tree/main/terraform/modules/storage"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_payops_frontend,node_payops_backend,node_psp_connectors,node_payops_worker,node_payops_db,node_payops_redis toneBlue
class node_storefront,node_identity,node_commerce_api,node_commerce_db,node_ecommerce_worker toneAmber
class node_gitops toneMint
class node_terraform_root,node_eks,node_vpc,node_security,node_ecr,node_storage toneRose
class node_customer,node_ingress toneIndigo
```

## Components

### Payment Control Plane

- [Hosted Checkout](https://github.com/eyadabouzaid/payops---q1/tree/main/PayOps): `PayOps`
- [Payment API & Routing](https://github.com/eyadabouzaid/payops---q1/tree/main/PayOps): `PayOps`
- [PSP Connectors](https://github.com/eyadabouzaid/payops---q1/tree/main/PayOps): `PayOps`
- [Jobs & Webhooks](https://github.com/eyadabouzaid/payops---q1/tree/main/PayOps): `PayOps`
- [PayOps Database](https://github.com/eyadabouzaid/payops---q1/tree/main/PayOps): `PayOps`
- [Redis Queue & Streams](https://github.com/eyadabouzaid/payops---q1/tree/main/PayOps): `PayOps`

### Commerce Platform

- [Storefront & BFF](https://github.com/eyadabouzaid/payops---q1/tree/main/Payops-ecommerce): `Payops-ecommerce`
- [Identity & Cart](https://github.com/eyadabouzaid/payops---q1/tree/main/Payops-ecommerce): `Payops-ecommerce`
- [Commerce API](https://github.com/eyadabouzaid/payops---q1/tree/main/Payops-ecommerce): `Payops-ecommerce`
- [Commerce Database](https://github.com/eyadabouzaid/payops---q1/tree/main/Payops-ecommerce): `Payops-ecommerce`
- [Maintenance Worker](https://github.com/eyadabouzaid/payops---q1/tree/main/Payops-ecommerce): `Payops-ecommerce`

### Cluster Operations

- [Kubernetes GitOps](https://github.com/eyadabouzaid/payops---q1/tree/main/payops-gitops): `payops-gitops`

### AWS Infrastructure

- [AWS Infrastructure](https://github.com/eyadabouzaid/payops---q1/tree/main/terraform): `terraform`
- [EKS Cluster](https://github.com/eyadabouzaid/payops---q1/tree/main/terraform/modules/eks): `terraform/modules/eks`
- [VPC Networking](https://github.com/eyadabouzaid/payops---q1/tree/main/terraform/modules/vpc): `terraform/modules/vpc`
- [IAM & Security](https://github.com/eyadabouzaid/payops---q1/tree/main/terraform/modules/security): `terraform/modules/security`
- [Container Registry](https://github.com/eyadabouzaid/payops---q1/tree/main/terraform/modules/ecr): `terraform/modules/ecr`
- [S3 Storage](https://github.com/eyadabouzaid/payops---q1/tree/main/terraform/modules/storage): `terraform/modules/storage`

### Other components

- **Customer / Merchant**
- **ingress-nginx**

## Connections

- Customer / Merchant → ingress-nginx: browses / checks out (evidence: `README.md`)
- ingress-nginx → Storefront & BFF: routes storefront (evidence: `README.md`)
- ingress-nginx → Hosted Checkout: routes checkout (evidence: `README.md`)
- Storefront & BFF → Identity & Cart: calls BFF services (evidence: `README.md`)
- Storefront & BFF → Commerce API: calls BFF services (evidence: `README.md`)
- Identity & Cart → Commerce Database: persists identity data (evidence: `README.md`)
- Commerce API → Commerce Database: stores orders & ledger (evidence: `README.md`)
- Maintenance Worker → Commerce API: calls maintenance (evidence: `README.md`)
- Commerce API → Payment API & Routing: creates payment intent (evidence: `README.md`)
- Hosted Checkout → Payment API & Routing: calls payment API (evidence: `README.md`)
- Payment API & Routing → PayOps Database: reads & writes (evidence: `README.md`)
- Payment API & Routing → Redis Queue & Streams: queues jobs & events (evidence: `README.md`)
- Payment API & Routing → PSP Connectors: routes charges (evidence: `README.md`)
- Jobs & Webhooks → Redis Queue & Streams: pops jobs (evidence: `README.md`)
- Jobs & Webhooks → PayOps Database: reads payment data (evidence: `README.md`)
- Jobs & Webhooks → Commerce API: sends signed webhook (evidence: `README.md`)
- Commerce API → Commerce Database: settles ledger entries (evidence: `README.md`)
- Storefront & BFF → Payment API & Routing: requests invoices (evidence: `README.md`)
- AWS Infrastructure → EKS Cluster: provisions cluster (evidence: `README.md`)
- AWS Infrastructure → VPC Networking: provisions network (evidence: `README.md`)
- AWS Infrastructure → IAM & Security: provisions access (evidence: `README.md`)
- AWS Infrastructure → Container Registry: provisions registry (evidence: `README.md`)
- AWS Infrastructure → S3 Storage: provisions storage (evidence: `README.md`)
- Kubernetes GitOps → EKS Cluster: deploys workloads (evidence: `README.md`)
