How to Build a Fundraising or Donation Site
People give when they trust where the money goes. A good donation site makes that obvious, counts only confirmed gifts toward the goal, and sends a receipt within seconds.

Key takeaways
- The goal bar must count only payments the processor has confirmed. A webhook adds each gift; the page never adds its own.
- Suggested amounts tied to concrete outcomes ("$40 buys a week of meals") lift giving more than a blank amount field.
- Receipts, a named organizer and dated updates are the trust signals. Whether a gift is tax-deductible depends on your legal status, not your website.
A fundraising or donation site needs a campaign page that explains the cause and shows progress toward a goal, a giving form with suggested amounts and a monthly option, a payment processor such as Stripe to take the money, a donations table that is updated only when a payment is confirmed, and an automatic receipt email. Everything else (donor walls, updates, sharing) exists to make people trust the campaign enough to finish the form.
Know which kind of fundraiser you are building
- A nonprofit's own donate page: always on, monthly giving matters most, receipts need the organization's details.
- A single campaign: a roof repair, a team trip, a medical bill. One goal, a deadline, updates, and a big share button.
- Peer-to-peer fundraising: supporters create their own pages ("Sam is running 10k for the shelter") that roll up to one total. This is closer to a small marketplace and much more work.
- An event fundraiser: a gala, a raffle or an auction where giving is tied to tickets or items.
Start with the first or second. Peer-to-peer pages and auctions are great second versions once the core giving flow is proven.
The data model
- campaigns: title, slug, story, cover image, goal in cents, currency, start and end dates, status (draft, live, ended), and an optional list of suggested amounts with what each one pays for.
- donations: campaign id, amount in cents, currency, frequency (once or monthly), donor name, donor email, a display choice (show name, show as Anonymous, hide amount), an optional message, status (pending, succeeded, refunded), the processor payment id, and created at.
- recurring_gifts: donor email, amount, the Stripe subscription id, status, and next charge date, for monthly donors.
- updates: campaign id, title, body, image, posted at. Dated updates are the single best trust signal after the first week.
- campaign_totals (optional): a cached total and donor count per campaign, refreshed whenever a donation succeeds, so the page loads fast even with thousands of gifts.
The giving flow, end to end
- 01The donor picks a suggested amount or types their own, chooses once or monthly, and optionally adds a name and message.
- 02Server code validates the amount (a sensible minimum, a maximum that catches typos like 10000 instead of 100) and creates a pending donation plus a Stripe Checkout session.
- 03Stripe takes the payment on its own secure page.
- 04A webhook from Stripe marks the donation succeeded, refreshes the campaign total and sends the receipt.
- 05The donor lands on a thank-you page with a share link and, for campaigns, the updated total.
Startbase connects payments to your own Stripe account, so donations land with you directly and Startbase takes no cut. You connect with Stripe Connect from the Backend tab (business details and a bank account in Stripe's onboarding) or with your own keys. The Payments docs show both. Stripe's own processing fees still apply; many donation forms offer an optional "add a little to cover fees" checkbox.
Receipts and the tax question
Every donor should get a receipt email within seconds: amount, date, campaign, the organization's name and contact details, and a reference number. For monthly donors, one per charge plus a yearly summary is a nice touch that a scheduled job can send each January.
Whether a gift is tax-deductible is not something a website decides. It depends on the recipient's legal status in its country (for example, a registered charity) and on that country's rules about what a receipt must say. If you are a registered charity, check the required wording with your accountant and put it in the receipt template. If you are raising money for a person or a team, say clearly on the page that gifts are not tax-deductible.
Startbase Cloud can send these emails from your app through the platform sender with a daily limit, or from your own domain once connected through Resend, which is the better choice for receipts because they come from an address donors recognize. See the Emails docs.
Designing for trust
Donors are cautious, and fake fundraisers are common enough that people look for signals. Build these into the campaign page:
- A named organizer with a photo and a line about who they are and their connection to the cause.
- Where the money goes, in specifics: "the $6,000 goal covers the roof ($4,800) and the permit ($1,200)."
- Dated updates, including the dull ones. A campaign with no updates after two weeks looks abandoned.
- Recent gifts with first names or Anonymous and their messages, respecting each donor's display choice.
- A familiar checkout: Stripe's hosted page is recognizable and keeps card details off your site entirely.
- Contact details and, for organizations, the registration number if you have one.
Donor privacy
Donation records are personal data, and for some causes they are sensitive. Default the public donor wall to first name only, let anyone give anonymously, and never show amounts unless the donor agreed. On the backend, make the donations table readable only by organizers with row level security; the public page reads a filtered view of display names and messages. Export to CSV for your records instead of sharing admin access widely. The security page explains how Startbase itself handles your project data.
What to leave out of the first version
- Peer-to-peer pages, teams and leaderboards between fundraisers.
- Matching gift campaigns ("every gift doubled until midnight") unless you have a real matching donor.
- Pledges and promised gifts. Count money, not intentions.
- Donor accounts. An email address and a receipt are enough; monthly donors manage their gift through Stripe's customer portal.
A brief to start from
Build a donation site for a small animal shelter. One always-on donate page plus campaign pages, each with a story, cover photo, goal in dollars, end date and dated updates. The giving form offers $25 (a week of food for one dog), $60 (vaccinations), $150 (a spay or neuter) and a custom amount between $5 and $5,000, once or monthly, an optional message and a choice to appear by first name or as Anonymous. Payments go through my connected Stripe account; a webhook marks gifts succeeded or refunded, updates a cached campaign total and emails a receipt with the shelter's name, address, registration number and a reference. Monthly donors manage their gift in the Stripe customer portal. The goal bar and donor wall only count succeeded gifts. Donations are readable only by admins; the public wall shows first names and messages from a filtered view. Admin area to post updates and export donations to CSV. Warm, hopeful design with large photos.
Publish it and share the startbase.app address, or connect your own domain on a paid plan so the link matches your organization's name, which also helps trust. Accepting payments in your app explains the Stripe side in plain words, and GDPR for app builders covers donor records.
Frequently asked questions
Can I take monthly donations?
Yes, with Stripe subscriptions. Monthly donors are charged automatically and can change or cancel their gift through Stripe's customer portal, while a webhook keeps your records in sync.
Does Startbase take a percentage of donations?
No. Payments run on your own Stripe account and Startbase adds no fee of its own. Stripe's standard processing fees still apply.
Are donations through my site tax-deductible?
That depends on your organization's legal status and your country's rules, not on the website. Registered charities should confirm required receipt wording with an accountant; personal fundraisers should say gifts are not deductible.
How do I make the goal bar accurate?
Only count donations that the payment processor has confirmed, add them from a webhook, and subtract refunds the same way. Never let the browser add to the total.
