Accept donations with preset amount buttons and custom input.Documentation Index
Fetch the complete documentation index at: https://docs.ozura.com/llms.txt
Use this file to discover all available pages before exploring further.
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
| Field | Type | Default | Description |
|---|---|---|---|
presets | array | — (UI shows [5, 15, 25, 50] if omitted) | Suggested donation amounts (buttons). Alias: suggestedAmounts |
defaultAmount | number | — (first preset if omitted) | Pre-selected amount |
allowCustomAmount | boolean | true | Allow donors to enter custom amount |
minAmount | number | 1 | Minimum donation amount |
maxAmount | number | 999999 | Maximum donation amount |
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.