"Stripe for Crypto" - A regulated crypto payments processor designed for Nigerian merchants and compliance
MarblePay is a fully regulated crypto payment gateway that enables merchants to:
- β Accept crypto at checkout (USDC, USDT, and more)
- β Auto-convert to stablecoins or fiat (NGN)
- β Settle instantly to merchant wallets or bank accounts
- β Full compliance with SEC Nigeria, CBN, and FATF Travel Rule
- β Developer-first APIs, webhooks, and plugins
- KYB + KYC flow with document capture, liveness checks, sanctions screening
- Compliance stack: Smile Identity, Dojah, VerifyMe (Nigeria-focused)
- SEC registration under Virtual Assets framework
- CBN VASP bank accounts (designated accounts per CBN guidelines)
- AML program aligned to FATF standards + Travel Rule
- NDPA 2023 compliance (Nigeria Data Protection Act)
- Start with USDC (Ethereum, Base) and USDT where compliant
- Multichain support: Ethereum L1, Base L2, Solana
- Note: No BUSD (Paxos halted), no MoonPay (paused Nigeria)
- Price quote + lock: NGN/USD quote β exact coin amount + network fees + expiry
- QR + unique address: One address per session, detect under/over/late payments
- Confirmations: Configurable per chain (pending β confirmed β expired)
- Refunds: Secure return with address re-verification
# REST APIs
POST /v1/checkout/sessions
POST /v1/refunds
POST /v1/payouts
GET /v1/transactions/:id- Webhooks with HMAC-SHA256 signatures (Stripe-style)
- Test mode with sandbox API keys
- SDKs: JavaScript, Python, PHP
- Plugins: Shopify, WooCommerce, Next.js
- Hot wallet: MPC or HSM-backed signing (Fireblocks, BitGo)
- Cold storage policy for treasury reserves
- Address book: Risk scores, allow/deny lists, velocity limits
- Auto-blacklist from sanctions lists (Chainalysis, TRM Labs)
- Quote engine: On-chain gas APIs + liquidity quotes + spread + fees
- Liquidity sources: CEX accounts, OTC desks, L2 DEX swaps
- Daily PnL tracking and exposure limits
- Same chain/asset or convert to USDC
- Settle to merchant wallet directly
- Partners: Yellow Card B2B rails, Transak off-ramp
- Regulated through licensed VASPs only
- Pre-screening: Source/destination addresses, cluster analysis, sanctions
- Travel Rule compliance: Transmit originator/beneficiary data per FATF Rec. 16
- Tools: Chainalysis KYT, TRM Travel Rule APIs
- Payouts, balances, disputes, refunds
- Conversion history, fee invoices, export reports
- Case management, SAR/STR workflow
- Manual review queue, Travel Rule alerts
- Double-entry accounting for assets, fees, FX PnL
- Bank reconciliation, audit exports
- Next.js 14+ (App Router)
- TypeScript
- TailwindCSS + Shadcn UI
- React Query for data fetching
- Node.js with NestJS (or Go for high-performance services)
- TypeScript end-to-end
- PostgreSQL (primary OLTP database)
- Redis (queues, rate limiting, caching)
- Kafka (event streaming - V2)
- RPC Providers: Infura, Alchemy, QuickNode
- Chains: Ethereum, Base, Solana
- Libraries: ethers.js, web3.js, @solana/web3.js
- MPC Wallets: Fireblocks SDK or BitGo API
- KMS: AWS KMS / GCP Secret Manager
- HSM: For production key signing
- KYC/KYB: Smile Identity, Dojah, VerifyMe APIs
- Blockchain Analytics: Chainalysis KYT, TRM Labs
- Travel Rule: TRM Travel Rule API
- Logs: Winston + Elasticsearch
- Metrics: Prometheus + Grafana
- Tracing: OpenTelemetry
- Errors: Sentry
- Containers: Docker + Kubernetes
- CI/CD: GitHub Actions
- Cloud: AWS / GCP
- CDN: Cloudflare
Focus: Prove the core payment flow works
- Hosted checkout for USDC on Base + Ethereum
- Quote lock with expiry (1-2 confirmations)
- Underpay/overpay recovery
- Webhooks with HMAC signature, event log
- Test mode for developers
- Merchant dashboard lite (view payments, export)
- Payouts in USDC only
- Basic chain screening (TRM or Chainalysis)
Deliverable: Merchants can accept USDC and get paid out in USDC
Focus: Production-ready with fiat off-ramp
- Add USDT support
- Add Solana network
- NGN settlements via Yellow Card or Transak
- Refunds system (address re-verification)
- Partial captures & cancellations
- Multi-sig treasury wallet
- FX spread controls
- WooCommerce plugin
- JavaScript drop-in widget
- Enhanced fraud detection
Deliverable: Merchants can accept crypto and settle to NGN bank accounts
Focus: Scale, compliance automation, advanced features
- Travel Rule automation (originator/beneficiary data routing)
- Compliance case-management workflows
- Multi-entity accounts (sub-merchants)
- Revenue share & marketplace model
- Invoices API
- Subscriptions with pre-funded vaults
- Advanced ML risk scoring (velocity, behavioral signals)
- Shopify plugin
- Mobile SDKs (React Native)
- Expanded asset support (BTC, ETH)
Deliverable: Enterprise-ready platform with full automation
- Register under Virtual Assets framework
- Track 2024/2025 ARIP guidance for transitioning firms
- Maintain updated AML policies
- Open designated VASP bank accounts (requires SEC licence)
- Prepare onboarding docs: AML policies, directors' BVNs, etc.
- Ensure banks cannot trade crypto (can only service you)
- Implement originator/beneficiary data exchange
- Set thresholds for Travel Rule triggers
- Partner with TRM or Chainalysis for compliance
- Appoint Data Protection Officer (DPO)
- Publish privacy policy
- Map data processing activities
- Implement DPIAs (Data Protection Impact Assessments)
- Sanctions screening (OFAC, UN, EU lists)
- Transaction monitoring & alerts
- SAR/STR filing procedures
- Customer due diligence (CDD) & Enhanced DD (EDD)
Simple & Transparent
- 1.0% - 1.5% transaction fee
- + Network fees (passed through transparently)
- Volume discounts for high-volume merchants
- Settlement currency discounts (settle in crypto = lower fee)
- Cap for large tickets (e.g., max β¦50,000 fee)
- β BUSD - Paxos halted minting, Binance ended support
- β MoonPay - Paused Nigeria service in 2024
- β Single off-ramp dependency - Always have 2+ partners
- β Retrofitting compliance - Build Travel Rule & NDPA from day one
- β Ignoring network changes - USDC no longer on Tron by Circle
- 1x Fullstack Engineer (Next.js + NestJS)
- 1x Blockchain Engineer (Web3, custody, RPC)
- 1x Compliance Lead / MLRO (part-time or advisor)
- 1x Designer (UI/UX for checkout + dashboard)
- Head of Engineering
- Security Lead
- DevOps Engineer
- Support Team
- Legal / Compliance Officer (full-time)
# Clone and initialize
npm install
# Set up environment variables
cp .env.example .env
# Start development servers
npm run dev:api # Backend API
npm run dev:web # Frontend dashboard
npm run dev:checkout # Checkout widget- Get API keys: Infura, Alchemy, or QuickNode
- Set up testnet wallets (Sepolia, Base Goerli, Solana Devnet)
- Smile Identity API key (KYC)
- TRM Labs or Chainalysis (screening)
- Create merchant account
- Generate checkout session
- Make test payment
- Receive webhook
- Process settlement
- Architecture Overview
- API Reference
- Webhook Guide
- Compliance Guide
- Security Best Practices
- Deployment Guide
- Smile Identity - KYC
- Yellow Card - Fiat off-ramp
- Transak - Fiat off-ramp
- Chainalysis - Compliance
- TRM Labs - Travel Rule
- Fireblocks - Custody
- Infura - RPC Provider
- Alchemy - RPC Provider
Proprietary - MarblePay Β© 2025
Built with π³π¬ for the future of payments in Africa