Inspiration
Fake online shops are everywhere, especially during big sales. They copy logos, post fake reviews and paste fake "trusted" badges. Shoppers can't tell real from fake, and honest small shops can't prove they are real. Now AI shopping agents are starting to buy for us too, and they can be fooled the same way.
But one thing is very hard to fake: a shop's real payment history. Real sales from many different buyers, real shipping tracking, few complaints, fair refunds. PayPal already has all of this.
What it does
ShopSure Verified lets real shops prove they are trustworthy using their own PayPal history, and lets shoppers and AI agents check any shop before they pay.
- Trust Score (0–100) from real PayPal data. Code computes it from Transaction Search (sales, distinct buyers, refunds), Disputes (complaints) and Tracking (shipping proof). The AI never decides the number.
- AI explanation with proof. Claude explains the score in plain words, and every sentence must cite real PayPal record IDs. Sentences that can't be proven are removed in code. Shoppers can click "view PayPal proof" to see the transaction IDs.
- Anti-fake-sales check. If one buyer makes more than 30% of sales, the score is capped and flagged as possible self-made sales.
- A badge that can't be copied. Shops embed a ShopSure badge. It checks which website it's on. Copy it onto a scam site and it turns red, names the real shop, and alerts the real owner.
- AI scam check for unknown shops. For shops with no PayPal history, Claude reads the page (treated as untrusted data) and lists scam signs with exact quotes — fake discounts, gift-card payment, WhatsApp-only contact.
- AI shopping agent with a hard safety rule. Ask "buy a scarf under $40". The agent searches products, checks every shop with ShopSure, and can only create a PayPal checkout for shops scoring 75+. This rule is enforced in code, not in the prompt, so it can't be talked out of it. The human still approves the payment on PayPal.
- Shop owner dashboard. AG Grid tables of PayPal sales and disputes, live activity, badge-misuse alerts, and an AI coach that turns weak spots into one-click PayPal actions — like adding missing tracking through the PayPal Tracking API, which raises the score.
How we built it
- Next.js 15 + TypeScript app, hosted on Render.
- PayPal REST APIs (sandbox): Transaction Search, Disputes, Shipment Tracking (read + add trackers), Orders v2 (create + capture for the agent), Catalog Products, Refunds, and Webhooks with signature verification for live score refresh.
- Claude API (Anthropic SDK): structured outputs with Zod schemas for grounded explanations and page checks, and the tool runner for the shopping agent (search_products, check_shop, create_checkout).
- AG Grid for the owner dashboard tables.
- SQLite (Node built-in) only as a cache and event log — PayPal stays the source of truth.
- A seed script creates realistic sandbox data: card sales from many test buyers, tracking, refunds and disputes.
Challenges we ran into
- Making AI trustworthy for trust decisions. We split the work: code computes the score, AI only explains it, and every AI sentence must point to real PayPal evidence IDs or it's dropped.
- Wash-trading. Guest card payments get a new PayPal ID each time, so one person could look like many buyers. We identify buyers by email/name instead.
- Badge copying. Browsers only send the site origin cross-site, so the badge checks both the referring host and the exact page path.
- Sandbox timing. Transaction Search can take hours to show new sales, so we seeded data early and cached results.
Accomplishments that we're proud of
- An AI agent that physically cannot pay a scam shop — the guard is in code, and the human approves on PayPal.
- Every AI claim is backed by a real PayPal record ID.
- A fake copied badge turns red on the scam site and alerts the real owner.
What we learned
PayPal data is a powerful trust signal. Combining deterministic scoring with grounded AI explanations gives answers that are both easy to understand and hard to fake.
What's next for ShopSure Verified
- One-click shop onboarding with PayPal Partner Referrals (third-party permissions), so shops never share keys.
- A browser extension that checks shops automatically while you browse.
- An MCP server so any AI shopping agent can call ShopSure before paying.
- More signals: account age, chargeback trends, and delivery confirmation.
Built With
- ag-grid
- anthropic
- claude
- next.js
- node.js
- paypal
- react
- render
- sqlite
- tailwindcss
- typescript