Enable Donation Mode
SetcheckoutMode to "donation" when creating a session.
Tax Exempt: Donation mode is automatically tax-exempt. No tax will be calculated or charged on donations—this is standard for charitable contributions.
amount – the donor chooses the amount on the checkout page.
Donation Config Options
Validation:
presetsmust be within theminAmount-maxAmountrangedefaultAmountmust be within theminAmount-maxAmountrange- Custom input is limited to 9 characters
Styling
Use the sameappearance object as standard checkout (colors, fonts, radius, etc.); values apply via shared CSS variables on the page. See Customize Appearance.
What the Donor Sees
- Preset buttons for quick selection (e.g., 25, 100)
- “Other” option to enter a custom amount (if enabled)
- Standard payment form
- “Donate” button
Example: Simple Preset
Example: Monthly Campaign
Example: With Min/Max Limits
- Donors can enter any custom amount between 10,000
- If they try to enter less than 5.00”
- If they try to enter more than 10,000.00”
Combine with Payment Links
Create a shareable donation link viaPOST /api/payment-links/create:
url on social media, email campaigns, or your website. See Payment Links for full details.