- Node.js (v18 or higher)
- npm or yarn
- Git
- Hardhat for smart contract deployment
- Wallet with testnet ETH and HBAR
- Clone the repository
git clone <your-repo-url>
cd ethgo-ai-payment-gateway- Install dependencies
npm install- Set up environment variables
cp env.example .env.local- Configure your environment variables
# Ethereum Configuration
NEXT_PUBLIC_ETHEREUM_RPC_URL=https://sepolia.infura.io/v3/YOUR_INFURA_KEY
NEXT_PUBLIC_ETHEREUM_CHAIN_ID=11155111
# Hedera Configuration
NEXT_PUBLIC_HEDERA_NETWORK=testnet
NEXT_PUBLIC_HEDERA_ACCOUNT_ID=0.0.123456
NEXT_PUBLIC_HEDERA_PRIVATE_KEY=your_hedera_private_key
# PayPal USD Configuration
NEXT_PUBLIC_PYUSD_CONTRACT=0x6c3ea903640685200629e0e9e2c0c0c0c0c0c0c0
# AI Configuration
NEXT_PUBLIC_ASI_API_KEY=your_asi_api_key
NEXT_PUBLIC_ASI_ENDPOINT=https://api.asi.foundationnpm install --save-dev hardhat @nomicfoundation/hardhat-toolbox# Deploy to Sepolia testnet
npx hardhat run scripts/deploy.js --network sepolia
# Deploy to Hedera testnet
npx hardhat run scripts/deploy.js --network hederanpx hardhat verify --network sepolia <CONTRACT_ADDRESS> <CONSTRUCTOR_ARGS>npm run build# Install Vercel CLI
npm i -g vercel
# Deploy
vercel --prod# Build
npm run build
# Deploy to Netlify
npx netlify deploy --prod --dir=outThe application supports multiple networks:
- Ethereum Sepolia: Main payment processing
- Hedera Testnet: Fast, low-cost transactions
- Local Development: Hardhat local network
After deployment, update your environment variables with the deployed contract addresses:
NEXT_PUBLIC_PAYMENT_GATEWAY_CONTRACT=0x...
NEXT_PUBLIC_HEDERA_BRIDGE_CONTRACT=0x...npx hardhat testnpm run test:integration- Connect wallet to Sepolia testnet
- Get test PYUSD tokens from faucet
- Test payment functionality
- Verify Hedera integration
- Monitor transactions on Etherscan
- Track Hedera transactions on Hashscan
- Use application analytics
- Transaction success rate
- Gas optimization savings
- AI feature usage
- User engagement
- All contracts are audited
- Use OpenZeppelin libraries
- Implement proper access controls
- Regular security updates
- Environment variables protection
- Secure API endpoints
- Input validation
- XSS protection
-
Transaction Failures
- Check gas limits
- Verify token balances
- Ensure network connectivity
-
Hedera Integration Issues
- Verify Hedera account setup
- Check network configuration
- Validate transaction parameters
-
AI Features Not Working
- Check API key configuration
- Verify network connectivity
- Review error logs
- GitHub Issues: Create an issue
- Discord: Join our Discord
- Documentation: Read the docs
- Use Hedera for low-cost transactions
- Implement batch operations
- Optimize smart contract code
- Code splitting
- Image optimization
- Caching strategies
- CDN usage
- Monitor for security updates
- Update dependencies
- Test new features
- Deploy updates
- Set up alerts
- Monitor performance
- Track user feedback
- Analyze metrics
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
This project is built for ETH Global Online 2025 and integrates with:
- PayPal USD: $10,000 prize track
- Hedera: $10,000 prize track
- Artificial Superintelligence Alliance: $10,000 prize track
Good luck with your submission! 🚀