๐ Pi Network Integration Guide
โก Quick Start
1๏ธโฃ
Register App
Visit Pi Developer Portal and create new app
2๏ธโฃ
Get App ID
Copy your App ID from the dashboard
3๏ธโฃ
Add to Vercel
Add NEXT_PUBLIC_PI_APP_ID in Vercel environment variables
4๏ธโฃ
Enable Sandbox
Set NEXT_PUBLIC_PI_SANDBOX=true for testing
๐ง Environment Variables
# Required
NEXT_PUBLIC_PI_APP_ID=tec-titan-elite-commerce-04d84accdca2487c
NEXT_PUBLIC_PI_SANDBOX=true
# Optional (for backend)
PI_API_KEY=your_api_key_here
๐ฑ App Configuration
App Name:Tec (Titan Elite Commerce)
App URL:https://tec-ecosystem.vercel.app
App ID:tec-titan-elite-commerce-04d84accdca2487c
Sandbox Mode:โ
Enabled
SDK Version:v2.0
๐งช Testing
Sandbox Mode (Any Browser)
- No real Pi required
- Mock authentication
- Simulated payments
- Perfect for development
Production Mode (Pi Browser)
- Real Pi Network authentication
- Actual Pi payments
- Blockchain verification
- Use small amounts for testing
๐ Troubleshooting
โ "Pi SDK not loaded"
Check browser console, refresh page, or enable sandbox mode
โ "Invalid App ID"
Verify App ID in Vercel environment variables and redeploy
โ "Payment not working"
Ensure sandbox mode is enabled and check payment callbacks