Module HelloAsso

From Dolibarr ERP CRM Wiki
Jump to navigation Jump to search

Informations

Module name HelloAsso
Editor / Editeur DoliCloud - www.dolicloud.com
Download or buy page / Page achat ou téléchargement
Status / Statut / Estado Development / Développement
Prerequisites / Prérequis

Dolibarr min version: 21   

Last update date / Date mise à jour fiche / Fecha última actualización 2025-10-9
Note / Nota

Features

Add into Dolibarr a HelloAsso online payment page (credit/debit cards). This can be used to allow your customers to make ad-hoc payments or payments related to a specific Dolibarr object (invoice, order etc...).

Installation

From the application

  • Download the archive file of module (.zip file)
  • Go on menu Home -> Setup -> Modules -> Deploy external module and submit the file.
  • Module is then visible into list of available modules (Home -> Setup -> Modules) and can be activated.

Manually

  • Download the archive file of module (.zip file)
  • Put the file into the root directory of Dolibarr.
  • Uncompress the archive file, for example with command
unzip modulefile.zip
  • Module is then visible into list of available modules (Home -> Setup -> Modules) and can be activated.

Setup

To use this module, you must first enable it using an administrator account, via the menu option "Home - Setup - Modules".

Choose the tab where the module is listed. Then click on "Activate".

The module is now activated.

If a cog icon appears Cog circle.svg on module thumb or at end of the line of the module, click on it to access the setup page specific to the module.


Setup of HelloAsso Api

Generate the two API keys required to make online payment with HelloAsso. They can be found on your HelloAsso dashboard:

  • First go on the page of the Association (create one from menu My login - Administer association - Add an association.
  • Once you are on the page of an association, go into the menu My Account > Integrations and APIs

HelloAsso membership synchronization

You need the name of a form to synchronize HelloAsso members to Dolibarr. This can be done on your HelloAsso dashboard:

  • First go on the page of the association (create one from menu My login - Manage the association - Add an association.)
  • Once you are on the page of an association, go into the menu My memberships ( create one from button Create a membership)
  • From there click on Manage
  • Here you can find the membership form name to use later in setup

Helloasso slug form web adress.png

Setup of Dolibarr module

1) Create a bank account to record any payment done using HelloAsso.

2) Go on the setup page of HelloAsso module in Dolibarr and set the created bank account as the default bank account.

Setup for sandbox mode

3) Next you need to connect to your HelloAsso-sandbox account to get and fill the 3 following fields in Dolibarr:

  • Client Organization name (of the organization you want the checkout to be done for. You can find the name in section My account - My association)
  • Client ID test key (Blue square on the image)
  • Client Secret test key (Red square on the image)

The two keys (Client ID and Secret) can be found on your HelloAsso-sandbox account in the menu My Account > Integrations and APIs in the page of the Organization.

Setup for live mode

3) The next thing you need to do is enable the Live mode by enabling the Helloasso On/Live button.

4) Next you need to connect to your HelloAsso account to get and fill the 3 following fields in Dolibarr:

  • Client Organization name (of the organization you want the checkout to be done for. You can find the name in section My account - My association)
  • Client ID live key (Blue square on the image)
  • Client Secret live key (Red square on the image)

The two keys (Client ID and Secret) can be found on your HelloAsso-sandbox account in the menu My Account > Integrations and APIs in the page of the Organization.

Setup of member synchronization

1) If you haven't already completed the Setup of Dolibarr module start by doing so.

Setup the membership form on HelloAsso

2) Next you need to connect to your HelloAsso account to get and fill the test membership form name and/or the live membership form name

Optional setup

Two optional setups are available.

HelloAsso and Dolibarr member type correspondence

This setup can be omitted if you don't want a specific Dolibarr member type to be linked to HelloAsso member types. The synchronization function will create a new member type in Dolibarr if no member type correspondence is set up.

To link a specific Dolibarr member type to HelloAsso member type:

1) First you need to get HelloAsso member type ID:

  • Load the developer tools on your browser logged in to an HelloAsso administrator account of your organization (F12 on Mozilla Firefox)
  • Click on the Network tab
  • Replace the values between <> with your membership form in: (Example : https://admin.helloasso-sandbox.com/MyAssociation/adhesions/adhesion-helloasso/edition/2)
    • https://admin.helloasso.com/<Organisation name>/adhesions/<Membership form name>/edition/2 and load it
    • Or for sandbox mode https://admin.helloasso-sandbox.com/<Organisation name>/adhesions/<Membership form name>/edition/2 and load it
  • Identify the tiers file returning a JSON type, and browse all the available tiers in the Response tab, the tier ID is in the field named id:

2) Next in HelloAsso module configuration, in membership settings tab. Find Dictionary of HelloAsso and Dolibarr member type correspondence part

3) Fill the two fields:

  • Select box needs to be filled with Dolibarr member type to link
  • Fill input with HelloAsso member type ID to link

4) Click on the Save button to save your configuration

HelloAsso and Dolibarr member type correspondence

This setup can be omitted if you don't have custom fields on HelloAsso form to synchronize with Dolibarr.

To link a Dolibarr member field to HelloAsso custom field:

1) First you need to get HelloAsso custom field slug:

  • Log in to HelloAsso dashboard and go to the page of the association
  • Once you are on the page of an association, go into the menu My memberships
  • From there, click on Manage
  • Now click on Step 3 Additional information
  • You must see the page of information about your members. Look into the information to be provided; here are all the custom fields slugs

2) Next in HelloAsso module configuration, in membership settings tab. Find Dictionary of HelloAsso custom fields and Dolibarr field correspondence part

3) Fill the two fields :

  • The select box needs to be filled with Dolibarr member field to link
  • Fill the input with HelloAsso custom fields slugs to link

4) Click on the Save button to save your configuration

Usage

Usage of HelloAsso online payment page

The only thing to do to use the module is to use any Dolibarr default link to make an online payment. All the links provided by Dolibarr to make online payment will support payment using HelloAsso.

Here is an example of customer payment page:

Exemple payment page Helloasso.png

Usage of member synchronisation

Once everything is set up, you can test the configuration of the synchronization function. To do so click on the button Test getting HelloAsso membership.

If there are no errors and a message is telling you that at least 1 member has been synchronized, you can now set up the scheduled job.

To enable the scheduled job:

  • Access to Scheduled Jobs module configuration. Navigate to the Scheduled jobs tab.
  • Next find the job with the label HelloAssoGetNewMembers
  • Don't touch any of the configuration except for Run job every and Next execution
    • Run job every defines how often the job will be executed.
    • Next execution defines when the next execution will take place (After the first execution, this field will be automatically updated).
  • Once everything is set up, click on Launch now to start the scheduled job

Development and contributions

The development of this Open Source application is not included inside the standard GIT repository of Dolibarr but inside a repository dedicated to modules not supported by the Dolibarr development team but supported by https://www.dolicloud.com on GitHub:

Your Pull request for fixes or enhancements are welcome.

Troubleshooting