T

๐ŸŒ 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

๐Ÿ”— Useful Links