Skip to main content

Create a Donation Campaign

Integrate Paysera's donation button to accept charitable donations through multiple payment methods with just a few lines of code.

Integration Steps

1

Create Paysera Project

Log in to Paysera and create a new project under "Service management"

Get started with your donation campaign
2

Configure Project Settings

Set up project information and get your ProjectID and password

Essential credentials for integration
3

Generate Donation Button

Navigate to Project settings → Donation button → Generate

Customize button appearance and behavior
4

Add to Your Website

Copy the HTML code and insert it into your website

Start accepting donations immediately

Donation Button Generator

Customize your donation button and generate the HTML code instantly

Required Parameters

Your Paysera project ID
For MD5 signature generation
Unique order identifier (use 0 for donations)
Page to redirect after successful payment
Page to redirect after cancelled payment
Server endpoint to receive payment notifications
Enable for testing (no real payments)

Optional Parameters

Leave empty to let user choose amount

Button Styling

Preset Colors:

Preview

Generated Code

<style>
#donateBtnSample {
  color: #ffffff;
  font-size: 17px;
  text-decoration: none;
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #136c9c;
  border-radius: 3px;
  padding: 11px 24px 14px 10px;
  display: inline-block;
}
#donateBtnSample img.donateBtnSampleLogo {
  padding: 3px 8px 3px 0px;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  vertical-align: middle;
}
#donateBtnSample span.donateBtnSampleText {
  padding-left: 16px;
  vertical-align: middle;
}
</style>
<a href="https://www.paysera.com/pay/?data=&sign=YOUR_SIGNATURE_HERE" id="donateBtnSample">
  <img class="donateBtnSampleLogo" src="https://paysera.com/assets/image/donate-button/paysera-sign.png" alt="Paysera">
  <span class="donateBtnSampleText">Donate</span>
</a>

<!-- Note: Enter your project password above to generate a valid signature -->
⚠️ Important: Please enter your Project Password to generate a valid signature. The signature is calculated as: md5(data + your_project_password)

Key Features

Multiple Payment Methods

Accept donations via credit cards, bank transfers, e-wallets, and all Paysera payment methods.

Customizable Interface

Customize payment text, donor fields, and integrate with your website design.

Secure Processing

All payments processed through Paysera's secure, PCI-compliant infrastructure.

Real-time Notifications

Receive instant callbacks and send automated receipts to donors.

Multi-language Support

Support donations in multiple languages and currencies with auto-conversion.

Test Mode

Test your integration safely without processing real payments.

API Reference

POSThttps://www.paysera.com/pay/

Create Donation Payment

Create a donation payment using Paysera's checkout system with encoded payment parameters.

Authentication

Project Credentials

Uses ProjectID and project password for request signing with MD5 hash

Request

Query Parameters

ParameterTypeRequiredDescription
datastringRequiredBase64-encoded payment parameters (URL-safe format)
signstringRequiredMD5 hash signature: md5(data + password)

Request Body

Payment parameters encoded in the data parameter

Content-Type: application/x-www-form-urlencoded
Request Schema

Request Examples

Code Examples

Response

Response Examples

Implementation Notes

  • Amounts specified in cents (e.g., 2000 = 20.00 EUR)
  • orderid must be unique for each donation
  • Callback URL must return "OK" text to confirm receipt
  • Use test=1 for testing (activate in project settings)
  • Payment text supports [order_nr] and [owner_name] variables
  • Donor information (firstname, lastname, email) is optional
  • Supports multi-language interfaces and currency conversion
  • Recurring donations: use additional PIS parameters with supported banks

Next Steps

Read Full Documentation

Explore complete API reference, parameters, and advanced features.

View Checkout API Docs

See More Examples

Check out integration examples in multiple programming languages.

View Examples

Common Questions

Find answers to frequently asked questions about integration.

View FAQ