-
Environment Variable Added:
APPS_SCRIPT_WEB_APP_URLis now set in.env.local- Your Apps Script Web App URL is configured
-
Dev Server:
- Server is running on http://localhost:3000
- Restart if needed:
npm run dev
-
Open your browser:
- Go to http://localhost:3000
-
Start an order:
- Click "Start Printing Now"
- Upload 1-2 test files (PDF or images)
- Configure print options
- Click "Proceed to Payment"
-
Complete payment:
- Scan or view the QR code
- Upload a payment screenshot (or use a test image)
- Click "Confirm & Proceed"
-
Verify:
- You should see "Order Placed!" animation
- You'll be redirected to order status page
- Note the Order ID
- Open Google Drive:
- Go to https://drive.google.com/
- Navigate to your folder (ID:
1M21jnE7SEm-81HUufhnas24q42nrmM2K) - Verify: Your uploaded files should appear here
- Open Google Sheets:
- Go to https://sheets.google.com/
- Open your sheet (ID:
19pxCvykhIsTDZOFYpCcaVu8To1lRDfP6-OF_NsiqdNo) - Verify: Order details should be logged with:
- Timestamp
- Order ID
- Total amount
- VPA
- File count
- File IDs
- File names
- View orders:
- Go to http://localhost:3000/admin
- Verify: Your test order appears in the list
- Check that file thumbnails display correctly
Browser Console:
- Open DevTools (F12)
- Check for any errors
- Look for Apps Script upload logs
Server Logs:
- Check terminal where
npm run devis running - Look for:
✅ Apps Script upload successful❌ Apps Script upload failed(if errors)
Files not uploading?
- Check
.env.localhas the correct URL - Verify Apps Script is deployed with "Anyone" access
- Check browser console for CORS errors
403/401 errors?
- Re-authorize Apps Script
- Check deployment settings
Files not in Drive?
- Verify folder ID is correct
- Check Apps Script execution logs
- Ensure folder is accessible
- Go to https://script.google.com/
- Open your PrintX project
- Click "Executions" (clock icon)
- Check recent executions for errors
- ✅ Files appear in Google Drive folder
- ✅ Order appears in admin dashboard
- ✅ Order details logged in Google Sheet
- ✅ File thumbnails display correctly
- ✅ No errors in console
Once testing is successful:
- Deploy to Vercel
- Add the same environment variable in Vercel
- Test in production
- Monitor usage and quotas