Inspiration
A payment capture request can time out even when PayPal completed it. Treating a timeout as a failure and retrying blindly can create duplicate-charge risk; waiting without evidence leaves operators guessing. PayPilot explores a safer, evidence-first way to answer “what actually happened?”
What it does
PayPilot is a merchant payment operations workbench. It organizes orders, payment attempts, provider events, and investigations around a correlated timeline. Unknown outcomes remain explicitly unknown until a provider-state refresh supplies evidence. Capture retries are gated on that refresh, and amount or currency mismatches are sent for review.
How it works
The Go API uses PostgreSQL to persist order and payment state, webhook events, and investigation evidence. Its PayPal Orders v2 Sandbox adapter creates orders, captures approved orders, refreshes provider state, and verifies webhook signatures. Deterministic record checks run for investigations. An OpenAI Responses API adapter is implemented with bounded, read-only evidence tools and output validation, but we did not configure API access and have not demonstrated a live model run. The synthetic browser scenario calls neither PayPal nor AI and moves no money.
What we verified
On 9 November 2026 we completed a USD $1 PayPal Sandbox buyer approval and server-side capture. PayPilot persisted the paid status and capture reference, verified and processed the matching PAYMENT.CAPTURE.COMPLETED webhook, and then refreshed the existing capture: PayPal returned COMPLETED and the provider reference matched local state. This was Sandbox testing, not a live-money transaction.
The hosted Render demo is a separate, synthetic-only walkthrough; it has no database, PayPal calls, AI calls, or payment/investigation API routes. For the real Sandbox flow, follow the setup instructions in the public repository.
Built with and limitations
Go, Gin, PostgreSQL, PayPal Orders v2 Sandbox, OpenAI Responses API (implemented but live use unverified), Docker Compose, and HTML/CSS/JavaScript. This is a prototype without merchant authentication or tenant isolation. Do not use production credentials or real merchant data. We have not measured operator time, support cost, chargebacks, or business impact. The project existed before the event; the public Git history identifies work completed during the hackathon period.
Built With
- docker
- gin
- go
- javascript
- openai
- paypal
- postgresql
