Knowledge and practice

Collecting Donations with Twingle and Managing Them in CiviCRM

Berlin-based Twingle allows organisations to set up a donation page or embed a donation form on their own website, offering a range of payment methods without having to process the payments themselves.

Twingle also provides a ready-made integration with CiviCRM. Donor details, contribution records and, optionally, newsletter subscription requests can be transferred automatically from Twingle to CiviCRM. Once you have access to CiviCRM, enabling the connection requires little more than selecting the integration and entering the relevant credentials. If you do not yet have CiviCRM, you can get started here.

The real value of this integration goes beyond recording donations. CiviCRM can match donors against existing contacts, create new records where necessary, assign people to groups and help you build lasting relationships with them. It can also generate donation receipts automatically, making it practical to acknowledge even very small contributions without additional manual work.

Before you begin, see Twingle's guidance on using CiviCRM with Twingle and common integration problems.

Table of Contents

1. What This Guide Will Help You Achieve

By the end of this guide, you will have:

  • a donation project in Twingle;
  • a dedicated technical user for the connection between Twingle and CiviCRM;
  • a secure connection to your CiviCRM instance;
  • a contact-matching profile for donors;
  • a configuration linking the Twingle project to CiviCRM;
  • automatic transfer of contacts and contributions;
  • and, optionally, newsletter subscriptions, SEPA processing and donation receipts.

The guide assumes a CiviCRM Standalone installation. The website on which you embed the donation form can be built with WordPress, Kirby or any other content management system.

2. The Twingle Extension for CiviCRM

CiviCRM can provide its own donation pages and accept payments through processors such as PayPal or Stripe. Setting these up, however, requires configuring the payment processors and creating public contribution pages that can then be integrated into your website.

Twingle simplifies this process. You create a donation project in Twingle Manager and embed the form it generates on your website. Twingle supports several payment methods and, according to its published pricing, charges transaction fees based on annual donation volume. These fees already include payment processing costs.

The Twingle extension gives you control over donor data and the ongoing relationship with each donor.

In CiviCRM, the extension can:

  • create a contact or identify an existing one;
  • record a contribution in CiviContribute, including its amount and payment method;
  • associate contributions with the relevant campaigns and purposes;
  • add donors to groups;
  • initiate newsletter subscriptions;
  • and, where required, create SEPA mandates.

To help prevent duplicates, the Twingle extension uses the Extended Contact Matcher (XCM) extension. XCM compares the incoming details with existing contact records according to configurable matching rules.

Twingle transfers newly received donations to CiviCRM. Subsequent changes to transactions that have already been transferred, or accounting details added later in either system, are not synchronised. The connection is therefore not a fully bidirectional integration.

However, every contribution created in CiviCRM through Twingle includes a Twingle transaction number. For recurring donations, this allows Twingle to update the contribution status in CiviCRM when a donor pauses or cancels their regular payment, for example.

3. Requirements and Key Decisions

3.1 Twingle Account and Payment Methods

First, register for a Twingle account and enter into an agreement with Twingle. In Twingle Manager, configure the organisation's bank account and the payment methods you wish to offer.

Some payment methods have additional requirements, such as PayPal account details, a SEPA creditor identifier or the relevant bank account information.

3.2 Required CiviCRM Extensions

Three extensions are needed for the Twingle integration itself:

  1. Extended Contact Matcher (XCM)

    XCM determines whether incoming donor details match an existing contact and how a new contact is created or an existing record is supplemented.

    This extension is already installed in polbeo polishub.

  2. Twingle API

    This extension receives donation data from Twingle and creates contacts, contributions, group memberships and, where applicable, SEPA mandates.

    This extension is already installed in polbeo polishub.

  3. API Key

    This extension adds a tab to contact records for managing API keys. Users with the necessary permissions can view both the site key and the API key belonging to the contact.

    This extension is already installed in polbeo polishub.

Depending on how you intend to process donations, two further extensions may be useful:

  1. CiviSEPA

    CiviSEPA is required only if SEPA mandates and direct debit collections are to be managed in CiviCRM. It is not needed for donations processed entirely by Twingle.

    CiviSEPA is not pre-installed in polbeo polishub, but it can be installed under Administer → System Settings → Extensions.

  2. Donation Receipts

    This extension is required if donation receipts are to be issued from CiviCRM rather than Twingle. It supports individual and consolidated receipts, as well as batch generation and delivery of PDF documents.

    This extension is already installed in polbeo polishub.

3.3 Decisions to Make Before Configuration

Before configuring the integration, decide:

  1. Who will process SEPA direct debits: Twingle or CiviCRM with CiviSEPA?
  2. Who will manage newsletter double opt-in: Twingle or CiviCRM?
  3. Who will issue donation receipts: Twingle or CiviCRM?
  4. How should CiviCRM handle new or differing address details?

Making these decisions at the outset prevents the two systems from performing the same task independently.

4. Step-by-Step Configuration

4.1 Create a Contact for the Twingle Integration

Start by creating a separate contact in CiviCRM for the technical integration, for example:

  • Last name: Twingle API
  • Email address: an address used exclusively for this integration
  • Contact type: Individual

This record does not represent a real donor. Its sole purpose is to provide an identifiable contact to which the integration's permissions and API key can be assigned.

In CiviCRM, API keys belong to contacts and, where applicable, their associated user accounts. The permissions assigned to that user determine which actions an API request may perform.

4.2 Create a Dedicated User Role

Under Administer → Users and Permissions → Roles and Permissions, create a role with a clear name, such as:

Twingle API

Grant only the permissions required by the integration. Twingle's documentation identifies the following permission in particular:

  • Twingle API: Access Twingle API

If you use CiviSEPA, you will also need:

  • CiviContribute: Access CiviContribute
  • CiviCRM: Access CiviCRM backend and API

For security reasons, do not assign this integration a general administrator role.

4.3 Create a User Account

Next, open Administer → Users and Permissions → User Accounts and select Add User. Enter, for example:

  • Username: twingle-api
  • Email address: the address assigned to the technical contact
  • Linked contact: Twingle API
  • Role: Twingle API

The user account must be explicitly linked to the contact created in the previous step. Only then can that contact's API key be used with the permissions assigned to the user.

Use a long, randomly generated password for this account, even if it will not be used for ordinary interactive logins.

4.4 Generate the Site Key and API Key

The API Key extension is already installed in polbeo polishub. It allows API keys and the site key to be generated and displayed through a contact record.

Open the Twingle API contact. You will find a tab labelled API Key, where you can:

  • generate a new API key;
  • view or change the existing API key;
  • view the CiviCRM instance's site key.

The API key should be a long, random string used exclusively for this integration. Do not reuse the same key for other services.

Store both the site key and the API key in a password manager. They provide authenticated access to your CiviCRM instance and should never be kept in unprotected documentation or email messages.

4.5 Configure the CiviCRM Connection in Twingle Manager

In Twingle Manager, navigate to:

Settings → General → CRM → CiviCRM

Enter the following values:

  • URL: https://ihre-domain.tld/civicrm/ajax/rest
  • Site key: the site key of your CiviCRM instance
  • API key: the API key of the Twingle API contact
  • Delayed transfer of new payments: 15 minutes

Use delayed transfer. This is particularly important if Twingle collects additional contact details or newsletter consent after the payment process has been completed.

The recommended default delay is 15 minutes.

4.6 Create a Donation Project in Twingle Manager

Create a donation project in Twingle Manager. Each project might represent a particular campaign, a fundraising purpose or an area of your organisation's work.

Within the project, open Project Settings → Contact Details and Integration.

Enable the transfer of data from the donation project and copy its project ID. You will need this ID when configuring the profile in CiviCRM, so that incoming data can be processed according to the appropriate rules.

4.7 Create a Dedicated XCM Profile

In CiviCRM, open Administer → Automation → Extended Contact Matcher (XCM) and create a dedicated profile for Twingle:

  • Machine name: twingle_api
  • Name: Twingle API
  • Do not set it as the general default profile.

The matching rules are the most important part of this configuration. Use the following settings.

General Settings

  • When multiple contacts match: take the oldest contact
  • Input Sanitation: Strip UTF8 4 Byte Characters
  • Value matching: case-insensitive
  • Default location type: Home (recommended)
  • Primary Phone Type: Phone
  • Secondary Phone Type: Mobile
  • Tertiary Phone Type: Tertiary phone not used
  • Default Website Type: Main website

Update Options

  • Overwrite Fields: leave blank
  • Overwrite Details: leave blank
  • Change Primary Detail: leave blank
  • Fill Fields: Display Name, Organisation Name, First Name, Last Name, Prefix, Gender
  • Fill multi-value field values: leave blank
  • Fill Contact Details: Email, Phone
  • Make new contact detail primary?: leave blank
  • Fill Address: If the contact does not yet have an address of the same location type

Matching Rules

  • Match contacts by contact ID: enable
  • Rule #1: Last name, first name, and (any) email
  • Rule #2: First name and (any) email
  • Other rules: optional; otherwise leave blank

Leave all remaining options blank.

Choose matching rules conservatively. Incorrectly merging two different people is generally more serious than creating a duplicate that can later be reviewed and merged safely.

You may need to experiment with these rules to find the best approach for your organisation's contact data.

4.8 Configure a Twingle Profile in CiviCRM

Navigate to Administer → CiviContribute → Twingle API Configuration → Twingle API Profiles.

Copy the existing default profile and give the copy a distinct name. Configure at least the following values.

General Settings

  • Twingle project ID: the ID of your donation project
  • XCM profile: twingle_api
  • Address location type: Billing. This stores the transferred address as a billing address and avoids inadvertently overwriting another existing address.
  • Address location type for organisations: Billing
  • Required address components: Street, Postal Code, City
  • Financial type: Donation. Financial types can be defined under Administer → CiviContribute → Financial Types.
  • Financial type (recurring): Donation
  • Use booking date if available: Yes
  • Gender/other options: fill if currently empty

Payment Methods

Payment instruments are defined under Administer → CiviContribute → Payment Instruments.

The main point to consider is whether a payment can reliably be treated as received. A bank transfer may have been announced without the funds having arrived, and the same can apply to a SEPA direct debit that has yet to be collected.

If CiviCRM marked such a contribution as completed prematurely, a donation receipt might subsequently be issued for money the organisation had not received. Because receipts may only certify donations actually received, this could cause problems with the tax authorities.

For payment methods that are processed and confirmed automatically, select Completed. For bank transfers and SEPA payments requiring verification, select Pending. Once the payment has been checked in CiviCRM's contribution records, its status can be changed manually to Completed.

Groups and Relationships

  • Join newsletter groups: If a donor consents to receiving your newsletter during the Twingle donation process, select one or more groups to which the contact should be added. Groups are managed under Contacts → Manage Groups. Be aware that newsletter groups must have the visibility setting Public Pages for the double-opt-in process to be triggered.
  • Use double opt-in for newsletters: Yes
  • Join postal mailing groups: Optional. These groups can be useful when donors request a donation receipt but have not supplied an email address.
  • Join donation receipt groups: Select a group created for this purpose. The Twingle extension recognises when a donor requests a receipt and adds the contact to the selected group, making it easier to identify the contacts for whom receipts need to be issued.
  • Default campaign / Set campaign: Optional. This relates to CiviCRM's campaign module and is primarily useful for reporting and analysis.
  • Create membership of type: Optional
  • Create membership of type (recurring): Optional
  • Contribution source: Free text, such as Twingle

Pay particular attention to the mapping of payment methods. Every payment method enabled in Twingle must have a suitable counterpart in the CiviCRM profile. Missing or inconsistent mappings are among the most common causes of failed transfers.

4.9 Enable CiviSEPA Only If Required

The CiviSEPA extension allows SEPA direct debit mandates to be managed in CiviCRM. Mandates are held against contact records, can be prepared for submission to the bank and can be tracked to help prevent duplicate submissions.

Configuring CiviSEPA is straightforward but requires a separate setup process.

In Twingle, you can choose between two approaches:

  • Automatic SEPA: Twingle, or a connected payment service, collects the direct debit.
  • Manual SEPA: Twingle transfers the mandate details to CiviCRM, where CiviSEPA creates the mandate and manages subsequent collection.

Enable Use CiviSEPA in the Twingle API configuration only if CiviCRM is intended to receive SEPA mandates and process direct debits, and only after CiviSEPA has been installed and configured.

In the Twingle profile, map both approaches – automatic SEPA through Twingle and manual SEPA through CiviCRM – to the appropriate payment methods.

In particular, test whether a manual SEPA donation creates a mandate containing the expected details.

4.10 Configure Newsletter Subscriptions

Twingle can offer donors the option of subscribing to your newsletter directly within the donation form.

In the donation project's contact settings, enable Newsletter Registration, but disable twingle Double Opt-In by Email.

Twingle then passes the subscription request to CiviCRM. The Twingle API profile initially adds the contact to the newsletter group with a pending status, and CiviCRM sends the confirmation email.

The membership remains pending until the donor clicks the confirmation link. Only then does the person become a confirmed member of the mailing group.

This requires outbound email to be configured in CiviCRM and CiviMail's automated messages to be working correctly.

4.11 Decide How Donation Receipts Will Be Issued

As with newsletter subscriptions, you need to decide which system will be responsible for issuing donation receipts.

Option A: Issue Donation Receipts Through Twingle

Twingle can generate individual and annual donation receipts as PDFs and send them by email. This keeps receipt generation closely linked to payment processing.

Option B: Issue Donation Receipts Through CiviCRM

If CiviCRM is to issue the receipts, configure the Donation Receipts extension.

This is particularly useful if:

  • you also need to issue receipts for donations received outside Twingle;
  • you want to include all contributions made by a person in a consolidated receipt for the previous financial year;
  • annual receipts should be based on the full set of contributions recorded in CiviCRM;
  • or your organisation wants to manage and document the receipt process centrally in CiviCRM.

The request for a receipt transferred by Twingle can, for example, be used to add the donor to a dedicated group through the Twingle profile.

Do not issue a receipt for the same donation from both Twingle and CiviCRM. Donation receipts are tax documents, and issuing duplicate receipts for the same contribution is unlawful.

4.12 Embed the Twingle Form on Your Website

Embedding the donation form does not depend on CiviCRM.

In Twingle Manager, open the relevant donation project and navigate to Project Settings → Contact Details and Integration. Copy the code provided for your preferred embedding method and paste it into the appropriate place on your website.

For WordPress, you can optionally use a WordPress plugin or shortcode. For Kirby and other systems, use Twingle's general embedding code.

The WordPress integration affects only how the donation form appears on the website. It does not provide the connection to CiviCRM.

5. Test the Results

Start with a separate test project or a test page that has not yet been promoted publicly. Complete the configuration before taking donations through the live form.

Run at least the following tests:

  1. A donation using an email address that does not yet exist in CiviCRM.
  2. A donation from an existing contact.
  3. A donation with an address that differs from the one already recorded.
  4. A donation accompanied by a newsletter subscription request.
  5. A donation for which a receipt is requested.
  6. A manual SEPA direct debit, if this method is used.
  7. Another enabled payment method, where possible.

After the configured transfer delay has elapsed, check:

  • Was a new contact created, or was the correct existing contact identified?
  • Were the donor's name, email address and postal address stored correctly?
  • Was exactly one contribution created?
  • Are the amount, currency and purpose correct?
  • Are the financial type and payment instrument mapped correctly?
  • Was the correct campaign recorded?
  • Was the contact added to the intended groups?
  • Where applicable, is newsletter group membership initially pending?
  • Was a mandate created for a manual SEPA payment?
  • Can you identify the donor's request for a donation receipt?

Also check Twingle Manager to confirm that the transfer is reported as successful.

6. From Donation Processing to Fundraising and Organising

Once the transfer has succeeded, the donation has been processed technically. The broader value of CiviCRM, however, begins at this point.

You can now, for example:

  • identify first-time donors;
  • distinguish regular supporters from occasional donors;
  • analyse donations by campaign or purpose;
  • send thank-you messages and newsletters reporting what the contributions have achieved, and invite supporters to take part in further activities;
  • communicate with recurring donors in a more targeted way;
  • and turn individual contributions into lasting relationships.

Twingle makes it easier to collect payments. CiviCRM makes it possible to manage the relationship beyond the transaction.

If you do not yet use CiviCRM, you can get started with a free four-week trial.

7. Further Documentation

The following sections of the official CiviCRM documentation explain how to configure the Twingle integration, process contact and contribution data, and enable related features.

Twingle API Extension Documentation

  • User, Permissions and API Authentication – Sections 4.1–4.4: Creating a dedicated technical user, assigning the necessary permissions and authenticating the Twingle connection using an API key.

  • Configuring the Twingle Account on the Twingle Website – Sections 4.5 and 4.6: Entering the required credentials and REST API address in Twingle so that donation data can be transferred to CiviCRM.

  • Extended Contact Matcher (XCM) Extension – Section 4.7: Using XCM with Twingle and configuring the rules for matching incoming donor details to existing contacts or creating new records.

  • Twingle Profiles – Section 4.8: Configuring profiles that link donation projects, payment methods and group assignments.

  • CiviSEPA Integration – Section 4.9: Optional CiviSEPA integration, required permissions and settings for receiving and processing SEPA mandates.

Further CiviCRM Documentation

How This Guide Differs

The official Twingle extension documentation describes the technical features and configuration, sometimes using CiviCRM installations based on Drupal or WordPress as examples. This guide applies the configuration to CiviCRM Standalone and also addresses which system should take responsibility for payment processing, SEPA mandates, newsletter subscriptions and donation receipts.

It follows the entire process, from creating a Twingle donation project and transferring and checking contribution data to developing ongoing relationships with donors in CiviCRM.

Documentation reviewed on 25 October 2026. The linked pages were accessed on that date and point to the current English-language documentation using the latest path.

↑ Back to Table of Contents

2 reactions

Comments

No comments yet. Be the first to join the conversation.

Write a comment

By submitting your data, you agree that all entered data may be saved and displayed as a comment.
GDPR compliant
AI compliant
Secure hosting