Inspiration

Payment disputes are stressful for merchants. When a customer raises a dispute, merchants often need to gather transaction details, review conversations, identify missing documents, and prepare a response under time pressure.

We wanted to simplify this process by building an intelligent workspace that helps merchants understand what happened, see which evidence is available, identify what's missing, and prepare a clear response grounded in actual PayPal data.

What it does

Prooflane is an AI-assisted dispute investigation workspace built around PayPal's APIs.

  • Transaction visibility: Connects to PayPal Sandbox and retrieves transaction data for merchant-side triage.
  • Dispute workspace: Organizes individual disputes into a dedicated investigation view with case status, reason, amount, dates, and conversation history.
  • Evidence ledger: Structures available evidence, links findings to their sources, and highlights missing evidence requested by PayPal.
  • AI investigation: Analyzes dispute context and available evidence to generate structured findings, risk flags, and an evidence-grounded investigation summary.
  • Response drafting: Creates an editable merchant response draft that can be reviewed and copied.
  • Natural-language filtering: Allows merchants to describe transaction filters in plain English, preview the interpreted filters, and apply them to the transaction grid.

Prooflane is designed to assist merchants, not make decisions on their behalf. It does not fabricate evidence, predict dispute outcomes, or automatically submit responses or issue refunds.

How we built it

We built Prooflane using Next.js, TypeScript, and Tailwind CSS, with AG Grid for transaction exploration.

The application integrates with PayPal REST APIs, including:

  • PayPal Orders API for creating and capturing Sandbox payments.
  • PayPal Disputes API for retrieving dispute details, status, and evidence requirements.
  • PayPal Transaction Search API for transaction discovery.

On the AI side, we integrated Google's Gemini API for structured dispute investigation and natural-language transaction filtering. Zod validates structured outputs before they reach the application.

We also implemented a deterministic investigation fallback so that the application can still present source-grounded findings when the AI provider is unavailable.

Challenges we ran into

  • Connecting multiple PayPal data sources: Transactions, captures, and disputes can have different identifiers. Correctly mapping them without assuming that different IDs represent the same transaction was an important challenge.
  • Sandbox data availability: Transaction Search indexing can be delayed, even when a payment and its associated dispute already exist.
  • Evidence integrity: An investigation assistant must distinguish between available evidence, missing evidence, and merchant statements. It should never invent tracking details or documents to make a case look stronger.
  • AI reliability: External AI provider connectivity and structured output validation required additional handling. We implemented an explicit fallback rather than presenting unavailable AI results as successful analysis.
  • Responsible automation: We wanted to accelerate investigation while keeping merchants in control of final responses and dispute actions.

Accomplishments that we're proud of

  • Integrated real PayPal Sandbox payment and dispute workflows rather than relying on fabricated transaction records.
  • Successfully created and captured a Sandbox payment and investigated an associated real Sandbox dispute.
  • Built a dedicated dispute workspace that brings case context, conversations, transaction references, and evidence requirements together.
  • Implemented source-linked findings and a structured evidence ledger.
  • Preserved separate buyer transaction and seller capture references using PayPal-provided mappings.
  • Added an editable response drafting workflow.
  • Implemented natural-language filtering with preview-before-apply controls for the transaction grid.
  • Added deterministic fallback behavior to keep investigations transparent when the AI provider is unavailable.

What we learned

We learned that building a useful AI application for financial workflows requires more than connecting an LLM to an API.

Data provenance, identifier mapping, evidence quality, validation, and transparent failure handling are just as important as the AI itself.

We also learned that AI should distinguish verified facts from assumptions and missing information. In a dispute workflow, an honest investigation is more valuable than a confident but unsupported answer.

What's next for Prooflane

  • Improve Gemini reliability and expand structured investigation capabilities.
  • Add richer evidence collection and document management.
  • Introduce evidence completeness checks and clearer claim-to-evidence coverage.
  • Expand transaction-to-dispute reconciliation and improve handling of delayed PayPal indexing.
  • Add role-based access, audit logs, and secure multi-merchant support.
  • Explore additional payment-provider integrations.
  • Develop a production-ready workflow with human approval at every consequential step.

Our long-term vision is to make Prooflane an evidence-first operations platform that helps merchants investigate payment disputes faster, with greater clarity and confidence.

Built With

  • ag-grid
  • ai
  • generative-ai
  • google-gemini-api
  • next.js
  • node.js
  • paypal-disputes-api
  • paypal-orders-api
  • paypal-rest-apis
  • paypal-transaction-search-api
  • react
  • rest-apis
  • sandbox
  • tailwind-css
  • typescript
  • zod
Share this project:

Updates

Submission history