Inspiration

Freelancers and their clients face a trust problem: clients want to know that work meets the brief before paying, while creators want confidence that payment is available before delivering. As AI agents begin to participate in commerce, the same question applies to work delivered by agents.

We built TrustSettle AI to explore how PayPal sandbox payments, AI-assisted review, and human decision-making could work together.

What it does

TrustSettle AI is a sandbox prototype for reviewing and settling digital work:

  1. A client creates a contract and starts a PayPal sandbox checkout.
  2. The app waits for buyer approval and a confirmed authorization before recording funds as held.
  3. A creator submits delivery notes.
  4. Qwen, accessed through Groq, evaluates the submission against the brief. Deterministic checks and prompt-injection phrase filtering supplement the AI review.
  5. A human reviews the recommendation. The direct automatic-release endpoint is blocked.

The prototype also includes an audit trail, an AI-assisted settlement proposal, API documentation, and experimental agent-tool endpoints.

How we built it

We built the command center with JavaScript and the backend with Node.js and Express. We integrated PayPal's sandbox Orders and Authorizations APIs for the payment flow, and Groq's API for AI-assisted verification using Qwen. The app is deployed on Render, with interactive OpenAPI documentation.

Challenges

A key challenge was making the payment state honest: creating a PayPal order does not mean that funds have been authorized. We changed the flow to wait for buyer approval and a confirmed authorization before showing a hold.

Another challenge was preventing an AI recommendation from becoming an automatic payment decision. We added deterministic checks and a human approval step, while treating submitted delivery text as untrusted input.

What we learned

Payment authorization, capture, and payout are distinct steps that need to be tested separately. We also learned that AI is most useful here as a review assistant—not as the sole authority over someone's payment.

Current status and what's next

PayPal sandbox order creation, the buyer-approval gate, and Groq verification have been tested. The complete authorization-to-capture-and-payout flow still requires end-to-end verification. Authentication and storage are demo-grade, so this is not a production payment service.

Next, we want to complete the sandbox payment test, strengthen authentication and persistent storage, and improve the evidence-review experience.

Built With

Share this project:

Updates

Submission history