Trustless escrow payments powered by Solana smart contracts.
PactPay is a decentralized escrow platform that enables buyers and sellers to transact securely without relying on a traditional intermediary. Funds are held in a Solana smart contract and released only when predefined conditions are met, reducing fraud and increasing trust for peer-to-peer commerce.
Online transactions between strangers often require trust.
- Buyers risk paying for goods or services that are never delivered.
- Sellers risk delivering products without receiving payment.
- Traditional escrow services are expensive, centralized, and often slow.
PactPay solves this by replacing trust with programmable smart contracts.
PactPay combines a modern web application with Solana smart contracts to provide secure escrow payments.
- A seller creates a payment request.
- The buyer pays the requested amount.
- Funds are locked securely in escrow.
- The seller delivers the product or service.
- The buyer confirms delivery.
- The escrow smart contract releases the funds to the seller.
- If a dispute occurs, an administrator can resolve it according to platform policies.
Every escrow transaction is transparent, verifiable, and enforced by smart contract logic.
- Secure on-chain escrow
- Solana smart contract integration
- USDC settlement
- NGN to USDC conversion
- Paystack fiat payment integration
- Payment request generation
- Buyer and seller workflow
- Escrow release
- Refund support
- Dispute handling
- Responsive web interface
- Next.js 14
- React
- TypeScript
- Tailwind CSS
- Next.js API Routes
- Prisma ORM
- PostgreSQL (Neon)
- Solana
- Anchor Program
- @solana/web3.js
- SPL Token Program
- Paystack
- Render
Buyer
│
▼
PactPay Web App
│
├── Paystack Payment
│
├── PostgreSQL Database
│
└── Solana Smart Contract
│
▼
Escrow Vault
│
▼
Seller receives USDC
Application
https://github.com/Novara701/pactpay
Program ID
CTmWGn7wTnY7zXb3DaBavqdDdyaXVdWvsZ9Lck7nm3NU
Network
Devnet
Clone the repository
git clone https://github.com/Novara701/pactpay.gitInstall dependencies
npm installGenerate Prisma Client
npx prisma generatePush the database schema
npx prisma db pushRun the application
npm run devCreate a .env file containing the required configuration values such as:
- Database connection
- Paystack keys
- Solana RPC URL
- Program ID
- Admin wallet
- Application secrets
Sensitive credentials are intentionally excluded from this repository.
- Multi-signature dispute resolution
- Buyer reputation system
- Seller reputation system
- Multi-currency support
- NFT receipt generation
- Mobile application
- Wallet authentication
- On-chain dispute evidence
PactPay leverages Solana because it provides:
- High throughput
- Low transaction fees
- Fast settlement
- Excellent developer ecosystem
- Reliable smart contract execution
These characteristics make Solana an ideal blockchain for escrow payments.
Divine Ovbiosa
Founder & Developer
This project was created for educational purposes and hackathon participation.
2c1f1ff (Update README)