Inspiration

Nonprofits lose a slice of every donation to fees, small ones have no bargaining power, and most cannot see whether they will make rent next month. We wanted one place where an organization can take payments from anywhere in the world, understand its cash flow, and get something back for the volume it brings.

What it does

giveback is a PayPal-powered point of sale and giving platform for nonprofits. Every organization earns cashback based on volume.

  • Sell: a volunteer rings up a sale or donation on the Counter. Supporters pay with PayPal on the device or by scanning a QR code on their phone, can cover the admin fee, or give anonymously. A PAID stamp confirms it, and a live display shows the goal, impact and latest supporters.
  • Record: PayPal webhooks (signature-verified, idempotent) update the dashboard: today's total, cashback earned, tier progress and the effective fee rate. The giveback platform account is paid, keeps its small fee, and settles the nonprofit instantly through the Payouts API.
  • Ask: "Ask giveback" is an AI analyst over the organization's own data. It explains trends, forecasts cash flow, answers "can we cover the March venue rent?", and saves a dashboard summary and working drafts so a director can leave and come back.
  • Act: the AI can propose a sponsor invoice, but nothing is sent until the director clicks Confirm. giveback then sends a PayPal invoice on the nonprofit's behalf. When the sponsor pays, it is recorded, settled to the nonprofit, counted toward cashback, and a PDF receipt appears.
  • Get paid back: earned cashback is paid to the nonprofit's PayPal account through the Payouts API, with a PDF invoice per payout and a year-end report.
  • Reports: AG Grid's AG Studio powers the reports: live display, money in, global reach, fees and cashback, and supporters, with its AI agent for new charts and tables.

Cashback tiers: 0.5% / 0.75% / 1.0% of monthly volume, plus a small transaction-count bonus.

How we built it

Next.js, React and TypeScript on Vercel, with Neon Postgres. PayPal sandbox only: JS SDK v6 for checkout, and the REST APIs for Orders, Payouts, Invoicing, Transaction Search, Balances and Webhooks. Reports use AG Grid's AG Studio. The assistant uses OpenAI models with read-only tools, so every figure comes from a query. Money is integer cents, amounts are always computed on the server, payout and settlement rows are reserved before calling PayPal so a retry can never pay twice, and the money paths are covered by tests. The AI never moves money without an explicit confirmation click.

AI tools and models used

  • In the app: OpenAI models (default gpt-5.6-luna; gpt-5.4-mini and gpt-5-mini as alternates) for Ask giveback, the dashboard summary and working drafts, and for AG Studio's built-in AI assistant. The assistant uses tool calling over the organization's own data.
  • To build it: Claude Code (Claude Sonnet 5.5), the PayPal AI Toolkit plugin and the APIMatic Context Plugin for PayPal.

What is real and what is simulated (honest disclosure)

Everything runs on the PayPal sandbox, so no real money moves. Payments, webhooks, payouts, invoices and balances are real sandbox API calls. The pricing advantage that funds cashback is simulated: in a real launch it would come from pooled-volume pricing negotiated with PayPal plus a sponsor pool. Early history for the sample nonprofit is seeded data.

Challenges we ran into

  • PayPal cannot pay itself, so supporters pay the giveback platform account and giveback settles the nonprofit through Payouts, with idempotency so webhook retries never double-pay.
  • Making the AI trustworthy: it only reads data, cites tool results, and can never send an invoice without a human click.
  • Sponsor invoices had to flow through the platform account so they count toward volume and cashback.

Accomplishments we're proud of

The full loop works end to end in the sandbox: sell, record, ask, act, get paid back. Plus a clear business model: a platform page with real numbers and a scale model.

What we learned

Small, tool-grounded AI is far more useful than a chatty one, and the real work in payments is idempotency, verification and honest accounting.

What's next

Real pooled-volume pricing and a sponsor pool to fund cashback, PayPal partner fee collection instead of the payout workaround, recurring supporters with Subscriptions, and multi-organization accounts.

Built With

Share this project:

Updates

posted an update —

App Credentails

UPDATE: GitHub is not rendering the supporter/personal credentials properly. See below or view the README's code to get the correct credentials

App: https://giveback-theta.vercel.app · Vendor app (start here): https://giveback-theta.vercel.app/vendor/counter

Everything is PayPal sandbox. Sign in at sandbox.paypal.com with these test accounts (they stay available through Dec 15, 2026):

Role Email Password
Supporter (personal): use this to pay [email protected] SsC[
Nonprofit (business): receives money [email protected] 1B-u@IHU
giveback platform (business) [email protected] z&rgCS4F

Reset App Data for demo - Vendor App: https://giveback-theta.vercel.app/vendor/counter. Then Settings > RESET DEMO DATA

GitHub Reference

Submission history