AI-Powered Multi-Chain Payment Infrastructure
OrionPay Backend is a hybrid backend platform that combines NestJS microservices with a Python AI Engine to deliver intelligent, secure, and scalable payment infrastructure for modern financial applications.
- Multi-chain payment processing
- Bulk payment execution
- Voice-initiated transactions
- AI-powered fraud detection
- AI price analysis and routing
- Payment modules marketplace
- Smart transaction monitoring
- Wallet and account management
Frontend Applications
│
▼
NestJS API
│
▼
Python AI Engine
| Technology | Purpose |
|---|---|
| NestJS | API and business logic |
| Python | AI and machine learning services |
| FastAPI | AI service APIs |
| PostgreSQL | Primary database |
| Redis | Caching and queues |
| Docker | Containerization |
| Blockchain SDKs | Multi-chain integrations |
orionpay-api/
│
├── services/ # Microservices
│ ├── api/ # NestJS API service
│ │ ├── src/ # API source code
│ │ │ ├── app.controller.ts
│ │ │ ├── app.service.ts
│ │ │ ├── app.module.ts
│ │ │ └── main.ts
│ │ ├── test/ # API E2E tests
│ │ ├── dist/ # Compiled API output
│ │ ├── package.json # API dependencies
│ │ ├── tsconfig.json # TypeScript configuration
│ │ └── nest-cli.json # NestJS CLI configuration
│ │
│ └── ai/ # Python AI Engine service
│ ├── main.py # FastAPI entry point
│ ├── models/ # AI/ML models
│ ├── services/ # AI services (fraud detection, routing)
│ └── requirements.txt # Python dependencies
│
├── docker/ # Docker configuration files
│ ├── api.Dockerfile
│ └── ai.Dockerfile
├── docs/ # Documentation
├── scripts/ # Utility scripts
├── docker-compose.yml # Docker compose configuration
├── .env # Root environment variables
├── .env.example # Example environment variables
└── README.md
- Node.js 20+
- Python 3.11+
- Docker
- Docker Compose
git clone <repository-url>
cd orionpay-backend
docker-compose up --buildCreate a .env file:
DATABASE_URL=
REDIS_URL=
JWT_SECRET=
OPENAI_API_KEY=
BLOCKCHAIN_RPC_URL=docker-compose upRun in detached mode:
docker-compose up -dnpm run test
npm run test:e2eAPI documentation is available through Swagger:
http://localhost:3000/api/docs
- JWT authentication
- Rate limiting
- Fraud detection engine
- Transaction monitoring
- Role-based access control
MIT License