System Settings

DEMO

System Settings & Integrations

PHASE 3D ARCHITECTURE

Audit backend database linkages, PayPal Sandbox REST API v2 connectivity, Gemini AI Copilot engine, and demo environment health

PayPal REST API (Orders v2 Sandbox)

api-m.sandbox.paypal.com
Probing...
Status Message:Probing configuration...
Client ID State:Not Configured
Client Secret State:Not Configured
Idempotency & Capture:PayPal-Request-Id + Intent CAPTURE Active

To connect your real PayPal Developer Sandbox account, visit PayPal Developer Dashboard and configure:

PAYPAL_ENVIRONMENT=sandbox
PAYPAL_CLIENT_ID=<your-sandbox-client-id>
PAYPAL_CLIENT_SECRET=<your-sandbox-client-secret>
PAYPAL_BASE_URL=https://api-m.sandbox.paypal.com

Secrets are stored server-side only and never transmitted to the browser.

Supabase PostgreSQL Database

@supabase/supabase-js (v2)
Probing...
Status Message:Probing configuration...
Repository Migrations Catalog:5 SQL Migrations Implemented
  • 001_initial_schema.sqlCore Schema, Tables & Read-Only RLS
  • 002_paypal_sandbox_integration.sqlPayPal Capture & State Columns
  • 003_paypal_webhooks.sqlWebhook Events Ledger & Anon Lockdown
  • 004_paypal_webhooks_security.sqlSecurity Invoker View & Atomic Claims
  • 005_persistent_approvals.sqlMulti-Tenant Approvals & Atomic RPC
Remote Deployment State:Operating in verified in-memory fallback store
Row Level Security (RLS):Multi-Tenant Isolation Active

• Public Access: Direct write revoked on all tables. Anon read restricted.
• Tenant Isolation: Authenticated reads enforce business_id = auth.jwt().
• Webhook Protection: Raw table locked; public view uses security_invoker = true.
• Service-Role Operations: Approval decisions run atomic single-transaction RPC decide_approval_atomic.

The application operates on an in-memory transactional store with identical atomicity and rollback guarantees when environment variables are unconfigured. To link a live Supabase project, define NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY in .env.local.

Demo Environment State

Phase 3D Active · Sandbox Testbed
Active Sandbox
Security Mode:Strict Fictional Records Only
Merchant Account:Apex Velocity Technologies Ltd
Ledger Currency:USD ($)
Multi-Tenant Tenant ID:biz_paypilot_demo_01

All data records, payments, and customers displayed in the UI are synthetic. No real financial credentials or payment cards are stored or charged.

AI Integration & Copilot Engine

Google Gemini & Tool Orchestrator
Probing...
Engine Operational Status:Evaluating...
Active Intelligence Engine:Deterministic Tool Engine (Default)
Function Calling Protocol:Gemini Function Calling (REST v1beta)
Available Business Analytics Tools (5):
get_revenue_analyticsdetect_overdue_ordersdetect_anomaliesforecast_cash_flowget_business_recommendations
Guardrails & Safety:Rate Limited (30 req/min) + Dual-Control Guard

AI chat prompts are processed through server-side function calling with Gemini. When a live API key is unconfigured, requests seamlessly fall back to the deterministic tool engine without leaking credentials.