Industry guide · Custom Software

Charity Lottery and Raffle Software: Selling 60,000 Tickets in Three Hours Without Voiding the Draw

Charity Raffle Lottery Management software visual showing ticket, list ordered, and compliance shield.
The short answer

Expect $80,000 to $170,000 for a first release in 14 to 20 weeks covering licensed ticket issuance with sequential auditable numbering, jurisdiction and age eligibility gating, payments at draw night volume, the draw mechanism with retained evidence, and winner notification. A full platform adding subscription and calendar draws, bonus draws, in venue point of sale (POS), prize claim workflow, regulator reporting packs and a fundraising CRM (Customer Relationship Management) link runs $200,000 to $450,000 across 8 to 14 months. Build when you run recurring licensed draws with jackpots into six figures, sell in more than one jurisdiction, or take the majority of sales inside a three hour window. If you run two raffles a year with paper tickets at an event, Rafflebox will cover you for a fraction of the cost.

The three hours where the whole year is decided

A hospital foundation 50/50 with a jackpot climbing past $400,000. Sales open Monday, tick along quietly all week, and then 70 percent of the money arrives between the second period and the final buzzer on Saturday night. Your platform has to take card payments at that rate, issue every ticket with a number that a regulator can later reconstruct in order, refuse anyone outside the eligible jurisdiction, refuse anyone under the age limit, close sales at the exact second the licence says, run a draw whose randomness you can evidence, and produce a winner. Then you have to be able to prove all of it, months later, to somebody whose job is to find the gap.

What makes this different from ordinary ecommerce is that a defect is not a refund conversation. A defect is a void draw. If tickets were issued out of sequence, if a sale completed after the close, if a person in an ineligible jurisdiction bought in, or if you cannot evidence how the winning number was selected, the regulator can void the draw and put the licence at risk. The revenue is one problem. The public story about a hospital foundation that had to cancel a draw is a much bigger one.

So the build is really two builds sitting on each other: a high concurrency payments and ticketing system, and a compliance evidence system. Most teams underestimate the second one, because it produces nothing a donor sees.

What Rafflebox and Ascend actually cover

Rafflebox is a real and capable product in this space, particularly for Canadian charitable draws, and it will handle a conventional 50/50 or calendar raffle without you writing anything. Ascend Fundraising Solutions has serious experience with large in venue draws and the hardware and staffing that go with them. Neither is a weak option and both should be on your list before you consider a build.

They run short in three situations. The first is unusual draw structures. Once you want stacked draws, early bird prizes that themselves need separate numbering, subscription draws that auto enter a supporter every month with a payment that can fail, or a lottery where ticket packs carry different odds, you are outside what a packaged product exposes and into workarounds. The second is multi jurisdiction. If you sell into more than one province or state, the rules on eligibility, ticket numbering, unclaimed prizes and reporting differ, and a product that models one regime will make you manage the other by hand. The third is integration. Your draws generate supporters, and supporters belong in your donor database with a source attribution so next year's appeal knows who played. Getting that link right against Raiser's Edge, Salesforce or whatever you run is usually a project of its own.

Problem one: ticket numbering that has to be provably sequential

Regulators care about ticket numbering because it is the audit backbone. Every ticket sold must be uniquely and sequentially identified, unsold numbers must be accounted for, and the sequence must reconstruct after the fact. That sounds trivial until you are issuing several hundred tickets a second across multiple application servers, at which point the naive approaches all fail: database sequences bottleneck, distributed identifier generators produce gaps, and any scheme with a retry can double issue.

The pattern that holds is a single authoritative issuance path with pre allocated blocks and an append only ledger, where a ticket exists only once payment has actually settled and the ledger entry is written. Reservation happens before payment, issuance happens after, and abandoned reservations are recorded rather than deleted so the sequence has no unexplained holes. Ontario's electronic raffle system requirements are the strictest common reference point on this, and building to that standard tends to satisfy everyone else. If a developer proposes generating ticket numbers on the client or after the fact from a payment export, stop the conversation.

Problem two: eligibility that has to be checked before the sale, not after

Age and location eligibility are conditions of your licence. Checking them after the money arrives is not compliance, it is a refund process. The practical requirement is a gate before the payment step: a self declared date of birth at minimum, geolocation with a documented method and a recorded result, and a block list for jurisdictions your licence does not cover.

The hard part is that geolocation is imperfect and your buyers are real people at a hockey game with bad signal. A build has to decide what happens on an inconclusive check, and that decision is a policy question for your compliance counsel, not for an engineer. What the software must guarantee is that whatever policy you set was applied consistently and that the evidence of each check survives with the ticket. When a regulator asks how you knew that buyer was in province, the answer needs to be a stored result with a timestamp and a method, not a description of your intent.

Problem three: the draw itself is the evidence

The draw is a few milliseconds of computation carrying the entire integrity of the event. What matters is that you can demonstrate afterwards that the selection was random, that it drew only from validly issued and paid tickets, that the eligible pool was frozen at the close time, and that nobody could have influenced it.

A serious build seals the sales pool at close into an immutable snapshot with a cryptographic hash, uses a documented random source, records the draw inputs and outputs in an append only log, and produces a draw certificate showing the pool size, the hash, the timestamp, the selection and who witnessed it. Some jurisdictions require a witness or an independent observer, some require the system itself to be certified before use, and you must confirm your specific obligations with your regulator and your counsel rather than with an article. What is universal is that reproducibility is the deliverable. A draw you cannot reconstruct is a draw you cannot defend.

Problem four: after the draw, when everyone stops paying attention

Prize claim is where operational discipline collapses. The winner has to be contacted, identified, and paid, sometimes with tax withholding and reporting obligations depending on jurisdiction and prize size. Unclaimed prizes have rules about how long you hold them and what happens to the money afterwards. Then the licence report is due, and it has to reconcile gross sales, expenses, prize payout and the charitable proceeds figure your licence conditions require.

Building the claim workflow and the reporting pack is unglamorous and it is where a custom system earns its keep, because these are the artefacts that go to the regulator. Generated from the same ledger that issued the tickets, they take minutes. Assembled by hand from a payment processor export and a spreadsheet, they take a week and they disagree with each other.

Cost, timeline and what drives it

In Digital Heroes delivery experience, a first release covering compliant ticket issuance, eligibility gating, high concurrency payments, the draw with evidence, and winner notification runs $80,000 to $170,000 and ships in 14 to 20 weeks. A full platform with subscription and calendar draws, bonus and early bird structures, in venue point of sale with handheld devices, prize claim workflow, regulator reporting and donor system integration runs $200,000 to $450,000 over 8 to 14 months.

What pushes the price up: the number of jurisdictions, because each is a separate rule set and often a separate certification. In venue sales hardware, since handhelds, printers and unreliable arena connectivity turn a web problem into a field operations problem. Payment architecture at draw night concurrency, which needs load testing against realistic spikes rather than average traffic. Certification, where a regulator requires the system to be reviewed before use, which adds calendar time you cannot compress. And subscription draws, which look small and bring recurring billing, failed payment handling and entitlement questions with them.

What keeps it down: launching with a single draw type in a single jurisdiction, online only, and treating in venue and subscriptions as later phases once the compliance core is proven.

When to buy instead

Buy if you run one or two draws a year, sell in one jurisdiction, and your jackpot is modest. Buy if your team has no appetite for owning a system that regulators inspect. Rafflebox and Ascend both exist because most charities should not be building this, and there is no prize for reinventing ticket numbering.

Build when the draw is a recurring revenue programme rather than an event, when you sell across jurisdictions with different rules, when your draw structures do not fit the shapes a product offers, when the per ticket fees on packaged platforms have become a large number against your proceeds, or when the supporter data from draws is strategically important and you need it in your own systems with clean attribution. The tipping point is usually a mix of scale and structure: once draws are a programme with a calendar, the compliance and reporting overhead of running them on someone else's fixed workflow starts costing more than the software would.

How to choose a developer

Ask how they will guarantee sequential ticket issuance under concurrent load, and listen for whether they mention settlement ordering, reservations and an append only ledger. Anyone who answers with a database auto increment has not thought about what happens at 300 sales a second across several servers.

Ask what happens when a payment succeeds at the processor and the response never reaches your system. The correct answer involves idempotency keys and reconciliation against the processor, because on draw night this will happen and a buyer who paid without receiving a ticket is a regulatory problem rather than a support ticket.

Ask them to describe the evidence pack the system produces for a completed draw. If they cannot list its contents, they are building an ecommerce checkout with a random number at the end.

Ask about load testing specifically, including what peak they will test to and how they will simulate it. Then settle ownership before kickoff: the repository, the cloud accounts and the right to hire anyone else should be yours in writing. At Digital Heroes the client owns the code from the first commit, which matters here because your licence obligations sit with your charity and your evidence needs to be reachable without asking a vendor's permission.

Research & sources

The evidence behind this guide

Independent findings on why this investment pays off. Every link goes to the primary source.

  1. The average developer spends more than 17 hours a week dealing with maintenance issues such as debugging and refactoring, and about four of those hours on 'bad code' - waste that equates to nearly $85 billion annually worldwide in opportunity cost. Source: Stripe (2018) →
  2. Per the Standish Group CHAOS 2020 report (reviewed at this URL), across tens of thousands of software projects roughly 31% end successfully, about 50% are 'challenged', and roughly 19% fail outright; small projects succeed far more often than large ones, and Agile approaches succeed at markedly higher rates than Waterfall. Source: The Standish Group (2020) →
  3. A study (led by Prof. Pak-Lok Poon, published in Frontiers of Computer Science, 2024) reviewing decades of spreadsheet-quality research found that about 94% of spreadsheets used in business decision-making contain errors, illustrating the hidden risk of manual spreadsheet workarounds that custom software is built to replace. Source: Central Queensland University / phys.org (Prof. Pak-Lok Poon et al.) (2024) →
  4. McKinsey Global Institute estimated that about half of all work activities globally have the technical potential to be automated by adapting currently demonstrated technologies, though few occupations can be fully automated. Source: McKinsey Global Institute (2017) →
Connor B. · Account Manager · Sydney

Connor manages client accounts at Digital Heroes from Sydney, handling the running relationship once a project is underway: updates, approvals, change requests and the questions clients feel awkward asking twice. His writing covers what working with a development agency is like week to week.

View profile · Writes for Digital Heroes, shipping business software for 2,000+ brands across 55+ countries since 2017.

FAQ

Frequently asked questions

How much does a custom charity lottery or 50/50 raffle platform cost?
A first release with compliant sequential ticket issuance, age and jurisdiction gating, payments engineered for draw night concurrency, the draw with retained evidence and winner notification runs $80,000 to $170,000 over 14 to 20 weeks in Digital Heroes delivery experience. Adding subscription and calendar draws, bonus structures, in venue point of sale, prize claim workflow and regulator reporting takes it to $200,000 to $450,000 across 8 to 14 months. The number of jurisdictions you sell into affects price more than ticket volume does.
Is Rafflebox good enough, or should we build our own raffle platform?
For one or two conventional draws a year in a single jurisdiction, Rafflebox is a sensible answer and building would be hard to justify. The build case appears when draws become a recurring programme, when you sell across jurisdictions with different eligibility and reporting rules, when your draw structures include stacked or subscription formats a packaged product does not expose, or when per ticket platform fees have grown large relative to your charitable proceeds. Ascend Fundraising Solutions is also worth evaluating if your volume is concentrated in venue.
What makes ticket numbering hard in an electronic raffle system?
Regulators require every ticket to be uniquely and sequentially identified with the full sequence reconstructable afterwards, and that becomes difficult when hundreds of sales per second are being processed across multiple servers. Naive approaches fail in specific ways: database sequences bottleneck under load, distributed identifier schemes leave unexplained gaps, and payment retries can double issue. The pattern that holds is a single authoritative issuance path with pre allocated blocks, tickets issued only after payment settles, and an append only ledger where abandoned reservations are recorded rather than deleted.
How do we prove a draw was random if a regulator challenges it?
Seal the eligible ticket pool at the close time into an immutable snapshot with a cryptographic hash, draw using a documented random source, and write the inputs and outputs to an append only log that produces a draw certificate covering pool size, hash, timestamp, selection and any witnesses. The deliverable is reproducibility: months later you should be able to demonstrate exactly which tickets were in the pool and how one was selected. Confirm your specific evidentiary and certification obligations with your regulator and legal counsel, since they vary by jurisdiction.
How do we handle age and location eligibility for online raffle sales?
Check before the payment step rather than after, because a post sale discovery is a refund process rather than compliance. That means a date of birth gate, a geolocation check with a documented method, and a block on jurisdictions outside your licence, with the result of every check stored alongside the ticket. The genuinely hard decision is what to do when a location check is inconclusive, which happens constantly inside arenas, and that is a policy question for your compliance counsel that the software then applies consistently.
Can a raffle platform handle the traffic spike in the last hour before the draw?
It can, but only if it is designed and load tested for the spike rather than for average traffic, because a large share of sales commonly arrives in the final window. The engineering that matters is idempotent payment handling so a processor response lost in flight does not create a paid buyer without a ticket, reservation before issuance so the ticket ledger stays consistent, and horizontal capacity that does not depend on a single write bottleneck. Ask any developer what peak they will test to and how they will simulate it.
How long does it take to build a licensed raffle system?
A first release ships in 14 to 20 weeks. If your regulator requires the system to be reviewed or certified before use, add that calendar time on top, because it cannot be compressed by adding engineers and it usually happens after the software is complete. Charities that already have their licence conditions, draw structures and reporting formats documented move faster than those still deciding what they will sell.
Does a custom raffle system connect to our donor database?
It should, and this is often a large part of the business case. Every ticket buyer is a supporter with a source, a spend level and a channel, and getting that into Raiser's Edge, Salesforce or whatever you run with clean attribution means next year's appeal can treat players differently from event attendees. Treat the integration as its own workstream, since consent, deduplication and gift versus non gift transaction handling all need decisions before a single record moves.
Who owns the code and the draw records if we hire a developer?
You should own the repository, the cloud infrastructure accounts and the unrestricted right to hire another firm, agreed in writing before work starts. It matters more here than in most projects because the licence obligations sit with your charity, and if a regulator asks for draw evidence you cannot be waiting on a vendor to grant access to your own records. At Digital Heroes the client owns the code from the first commit and holds the infrastructure the evidence lives in.
What is the biggest mistake first-time software buyers make?
Choosing the lowest quote without asking why it is the lowest. A bid 40% under the field usually gets there by skipping tests, documentation, and code review, which are invisible in a demo and brutal to pay for later; every stalled project Digital Heroes has been asked to rescue tells some version of that story. The second mistake is signing without a written scope, which reliably turns the winning cheap quote into 1.5x to 2x the price by launch.
If we build for 20 users now, will the software cope with 500 later?
It should, without a rewrite, if it was built on a standard cloud stack; going from 20 to 500 users is mostly a hosting configuration change costing hundreds a month, not a second project. What actually breaks under growth is sloppier work: database queries never indexed for volume and features designed assuming one office's worth of data. Before signing, ask the vendor what happens to the system at ten times today's data, and listen for a specific answer.
What are the biggest mistakes first-time software buyers make?
Choosing the lowest bid, paying more than 30-40% upfront instead of on milestones, skipping a written specification, and having no maintenance plan for after launch. The most expensive of the four in Digital Heroes rescue projects is the missing spec: without written acceptance criteria, done becomes an argument instead of a checklist, and every disagreement resolves in the vendor's favor. Fix those four and you have avoided most of the ways these projects fail.
How many SaaS seats do we need before building custom becomes cheaper?
The crossover usually shows up between 20 and 50 seats on premium tiers. Salesforce Enterprise lists at $165 per user per month, so 40 users cost about $79,000 a year in subscriptions, which is real money against a custom system you would own outright. Run the comparison over three years: if subscription spend beats the build cost plus 15-20% annual maintenance, custom wins on price before you even count workflow fit.
How much should a small business budget for its first custom app or website?
For a focused first build, most small businesses land between $8,000 and $60,000: roughly $8,000 to $45,000 for a custom website and $25,000 to $60,000 for an internal tool or simple web app, based on Digital Heroes delivery across 2,000+ projects. Customer-facing products with payments, logins, or a mobile app start around $40,000. Quotes far below these bands usually mean a template with your logo on it, not software shaped around your workflow.
What questions should I ask a development agency on the first call?
Ask who exactly will build it, what happens when scope changes mid-project, what their maintenance terms are after launch, and what they will need from you every week. Then ask them to describe a project that went wrong and what they changed afterward; teams that have shipped at real volume have war stories, and teams claiming a perfect record are hiding something. The scope-change answer matters most: a disciplined shop describes a written change-order process, not a vague promise to be flexible.
What happens if I stop paying for maintenance after launch?
Nothing breaks on day one, which is what makes it dangerous. Within 6 to 18 months, unpatched dependencies accumulate known vulnerabilities, an integrated API like Stripe ships a breaking change, and the first fix requires a developer to relearn a stale codebase at full price. Budget 15 to 20% of the build cost per year for upkeep; it is the difference between a $500 patch and a $15,000 emergency.
Who can build a custom software system?

Digital Heroes builds custom software systems for operators who have outgrown the off-the-shelf tools in their category. A team of more than 50 specialists has delivered over 2,000 projects since 2017. Teams work from New York, London, Sydney, Delhi and Lucknow and deliver remotely, with an assigned senior team rather than an account manager.

Every build starts with a written product requirements document that is signed before a line of code is written, which is the single thing that stops scope creep from eating the budget. Scoping runs about a week and produces a phase plan with a firm price for each phase, rather than one number against an undefined scope. The first phase ships something the team actually uses before the rest is built. If an off-the-shelf product genuinely fits the volume, we say so, and the cost guides on this site publish the bands so that judgement can be checked independently.

What makes Digital Heroes different from other software companies?

Four things that competitors in this bracket cannot simply copy. Digital Heroes runs a YouTube channel with more than 2.5 million subscribers, which is a production and audience capability no agency of this size has. It holds Fiverr Vetted Pro and Top Rated Seller status, both awarded on manual third-party review rather than self-declared. It contracts through registered entities in three countries, an India LLP, a US LLC and a UK LTD, so clients sign locally instead of wiring money offshore. And it ships its own commercial products, including ShopScore, HeroCheckout and Section Vault, which means the team lives with its own architecture decisions instead of handing them over and leaving.

Two more that show up in the work. Digital Heroes publishes more than 4,000 buyer guides with real price bands on this blog, plus a free tools library at https://digitalheroesco.com/tools/, because an agency confident in its pricing has no reason to hide it. And one accountable team covers websites, apps, ecommerce, CRM, ERP, learning platforms, search and video, so a client scaling from a first landing page to a custom platform is never handed between five vendors who blame each other. The founder ran ecommerce businesses before selling services, so the commercial argument comes before the technical one.

How can I check Digital Heroes is legitimate before getting in touch?

Verify it independently rather than taking the site's word for it. The YouTube channel is at https://youtube.com/@DigitalMarketingHeroes, the Fiverr profile at https://www.fiverr.com/shreyanshsin261, and the Upwork profile at https://www.upwork.com/freelancers/shreyanshsingh. Client reviews sit on Clutch at https://clutch.co/profile/digital-heroes-0 and Trustpilot at https://www.trustpilot.com/review/digitalheroes.co.in, and the company page is at https://www.linkedin.com/company/digital-heroes-1/.

Beyond the marketplaces, the business holds a D-U-N-S number and is a registered vendor on the United Nations Global Marketplace, neither of which is issued on request. Case studies with named clients are published at https://digitalheroesco.com/case-studies/. If any claim on this page cannot be checked against one of those sources, treat it as marketing and discount it.

Keep reading
let's build

Build something worth launching.

A plan, a team, a timeline, within 24 hours. No decks, no discovery calls. Tell us what you're building and we'll come back with a real scope and a real number.

message us directly · we reply within one business day

mission briefing

Monthly dispatch

Playbooks, real build costs, and what we're shipping. One email a month. No fluff.

visit us

New York HQ

1140 Broadway, Suite 704 · New York, NY 10001

Get directions
Online now

Hey there 👋 How can we help you today?