New partnership: Give Lively brings California filings to nonprofits with Change
Change logo
Product
Charitable Registrations
Donations API
Legal Compliance
Nonprofit Verifications
Disbursements
Solutions
BY USE CASE
Donations at Checkout
Sweepstakes & Auctions
Loyalty Programs
Corporate Gifting
BY COMPANY TYPE
Commercial Co-Venturers
Professional Fundraisers
Law Firms
Legal Service Providers
Charitable Fundraising Platforms
Payment Processors
Resources
Blog
Keep up with Change’s latest
Customer Stories
How our customers use Change
Guides
Directories, how-to guides, and more
API Docs
How to use Change API endpoints
Help Center
How to use the Change platform
Hot off the press
CA AB 488 vs. HI SB 1048: Charitable Fundraising Platform Guide
A quick compliance guide comparing California and Hawaii’s fundraising platform rules.
Pricing
Pricing for Companies
Pricing for Charitable Registrations
How it Works
Request a Demo
Request a Demo
For Developers

How to build a donation integration for your business

Drew Taylor, Change
Drew Taylor
August 27, 2025
Blog
For Developers
How to build a donation integration for your business
Last Updated:
August 27, 2025
Drew Taylor, Change
Drew Taylor

A business donation integration connects the customer experience to a reliable system for nonprofit selection, payment capture, donation records, receipts, verification, reconciliation, and disbursement. The integration should begin with the giving model and funds flow, not with the placement of a Donate button.

Product, engineering, payments, legal, finance, and social-impact teams should agree on who funds the donation, who legally receives it, which charities are eligible, what the customer sees, and how money reaches the final nonprofit. Those decisions determine the API events, data model, disclosures, receipts, and compliance workflow.

Which donation model should the business support?

Choose one primary use case for the first release. Adding several donation mechanics at once makes the checkout, accounting, and legal analysis harder to test.

ModelFunding sourceTypical triggerKey design question
Add-on donationCustomerFixed amountIs it optional and clear?
Round-upCustomerOrder totalHow is rounding calculated?
Percentage of purchaseCompanyEligible saleWhich sales and limits apply?
Loyalty donationCustomer or companyPoints redemptionHow are points valued?
Corporate grantCompanyInternal approvalWho selects the nonprofit?

Source: Change donation integration framework. Reviewed September 24, 2026.

A customer-funded donation requires a clear voluntary choice and an accurate receipt flow. A company-funded charitable sales promotion can raise commercial co-venture questions. A platform that enables donations to multiple charities may need charitable fundraising platform analysis. Classify the model before building the interface.

Define eligible geography, currencies, payment methods, nonprofits, transaction minimums or maximums, refunds, chargebacks, recurring gifts, and campaign dates. The first version should include only the combinations the operational system can support.

What should the technical architecture include?

The donation system needs a durable record that connects the business event to the charitable transaction. An order ID alone is not enough when donations can be refunded, retried, split among charities, or paid on a different schedule.

At minimum, store:

  • A unique donation or grant identifier.
  • The associated order, account, campaign, or merchant.
  • The funding party and amount.
  • The intended nonprofit and its stable identifier.
  • The payment and settlement status.
  • The receipt or acknowledgment status.
  • The refund, reversal, or chargeback state.
  • The final grant or payout status.

Use idempotent server-side operations so a client retry does not create a duplicate donation. Validate amounts and nonprofit eligibility on the server, authenticate requests, protect API credentials, and log state transitions. Design webhooks or polling so internal systems can recover when an event is delayed or delivered more than once.

Apply the same security discipline used for payment and account APIs. The OWASP API Security project provides a current framework for risks such as broken authorization, unrestricted resource consumption, unsafe third-party API use, and security misconfiguration. Map those risks to donation endpoints, merchant accounts, campaign permissions, and operations tools.

Change's API reference documents current campaign, donation, nonprofit, and grant operations. Teams using Stripe can review the Change Stripe integration recipe for a current implementation pattern. The exact endpoints and fields should come from the live documentation rather than copied examples in an old article.

How should checkout, receipts, and failure states work?

The customer should understand whether the company or customer funds the gift, which charity benefits, the amount, and what happens next. Keep customer-funded giving optional, place it before final confirmation, and show the donation separately from merchandise, tax, shipping, tips, and discounts.

Design the success and failure paths together. The commerce order may succeed while the donation record fails, or a donation may later be refunded with the order. Decide whether the system retries, reverses, creates an operations task, or asks the customer to take another action.

Ready to add donations to your product?

Change provides APIs and operational infrastructure for nonprofit discovery, donation records, receipts, verification, and grant disbursements.
Explore the Donations API

The confirmation page and email should match the final transaction. If a customer made a charitable contribution, distinguish the charitable acknowledgment from the merchant's sales receipt. The IRS written acknowledgment guidance explains that a donor claiming a deduction of $250 or more generally needs a contemporaneous written acknowledgment from the charitable organization, including required information about goods or services provided.

Do not promise deductibility in a generic interface. Tax treatment can depend on the legal recipient, donor, transaction, and benefits received. Use counsel-approved language and ensure the correct organization issues any required acknowledgment.

Build an operations queue for unresolved records. Useful reasons include invalid nonprofit status, duplicate event, payment mismatch, missing customer email, refund conflict, payout return, and incomplete campaign configuration. A visible queue is safer than silently dropping a failed charitable transaction.

Reconciliation should prove that the amounts captured, refunded, held, granted, returned, and outstanding add up for every reporting period. Preserve immutable transaction history and use adjusting entries instead of overwriting completed events. Finance and operations should be able to trace a customer-facing donation from the order through the final nonprofit payment.

Set service ownership before launch. Engineering can own API reliability, but operations needs authority to resolve exceptions, finance needs a defined close process, support needs approved customer language, and legal needs notice when a campaign or funds flow changes.

Run a tabletop failure exercise before production. Walk through duplicate events, a delayed webhook, an ineligible nonprofit, a full refund, and a returned payout so every owner knows the expected action.

How should teams test and launch the integration?

Test the full lifecycle in a sandbox, then complete controlled production transactions. Confirm the user interface, API record, payment, ledger, confirmation, receipt, refund behavior, nonprofit verification, payout schedule, and reporting export.

Use this launch sequence:

  1. Approve the model. Document the parties, funds flow, legal category, disclosures, and campaign terms.
  2. Configure the campaign. Set eligible nonprofits, dates, amounts, metadata, and permissions.
  3. Implement the events. Create stable IDs and handle retries, webhooks, failures, and reversals.
  4. Reconcile end to end. Match orders, donation records, payment settlements, refunds, and grants.
  5. Pilot with limits. Start with a defined audience, merchant group, or campaign period.
  6. Monitor and expand. Review failures, support contacts, participation, payout status, and compliance changes.

Change's Donations API supports businesses adding giving to apps, sites, and platforms. Teams evaluating the full operating model can review how Change handles donations and the grant disbursement workflow.

Frequently asked questions

Should donations be processed as normal product revenue?

Do not assume so. The accounting and funds-flow treatment depends on the donation model, legal recipient, agreements, payment setup, and jurisdiction. Finance and counsel should approve the design.

Can a donation integration support any nonprofit?

Only if the program has a reliable directory, eligibility criteria, verification process, consent where required, and a path for exceptions. Recheck eligibility before disbursement.

What happens when an order is refunded?

Define the policy before launch. The system may need to reverse a customer-funded donation, adjust a company-funded amount, or preserve a completed grant. Record the decision and status.

Who sends the charitable receipt?

The legal recipient of the contribution generally owns the acknowledgment process. The user experience can deliver it, but the content and issuing organization must match the funds flow.

How long does a donation API integration take?

Timing depends on the use case, payment architecture, number of surfaces, compliance scope, and internal approvals. A narrow pilot with one donation model is easier to estimate than a multi-merchant platform launch.

This article provides general information, not legal, tax, or accounting advice. Consult qualified advisers about the integration.

Tablet of Contents
This is also a heading
This is also a heading

Explore Other Resources

What online professional fundraisers do for nonprofits

What online professional fundraisers do for nonprofits

How to create an effective cause marketing campaign

How to create an effective cause marketing campaign

Ecommerce master class step 9: Expand across personas

Ecommerce master class step 9: Expand across personas

Stay up to date with Change
Product
Charitable RegistrationsCCV FilingsDonations APIComplianceNonprofit VerificationsDisbursements
Solutions
By Use Case
Donations at CheckoutSweepstakes & AuctionsLoyalty ProgramsCorporate GiftingRound-Ups
By Company Type
Commercial Co-VenturersProfessional FundraisersLaw FirmsLegal Service ProvidersCharitable Fundraising PlatformsPayment ProcessorsCorporate Foundations
Resources
BlogCustomer StoriesGuidesPricing for Legal TeamsPricing for CompaniesFAQHelp CenterAPI DocsReferral Program
For Nonprofits
Claim Your NonprofitWhat is Change?FAQ for Nonprofits
Company
AboutPressSecurityContact UsPrivacy PolicyTerms
SOC 2 Type II badge
Change logo in white
© 2026 GetChange Corp.
Request a demo
Request a demo
Request a demo
Request a demo
Request a demo