This extension provides two apis specific to attac to handle the flow spip->civicrm They are meant to be called as rest apis
This api does two things:
- create or update a contact (the member)
- create the membership (using the api below)
params:
- first_name
- last_name
- address
- postal_code
- city
- amount
- payment_method (eg check, transfer, card...)?
this takes the params:
- contact_id
- amount
- financial_type_id (eg check, transfer, card...)?
- transaction_id (spip bank reference?)
the minimal amount has to be 13 euros and will be split into two: 12 euros for the subscription to the magazine, the rest for a membership
TODO:
- clarify the rules and implement if there is already a membership
The extension is licensed under AGPL-3.0.
- PHP v7.2+
- CiviCRM (FIXME: Version number)
Learn more about installing CiviCRM extensions in the CiviCRM Sysadmin Guide.
Sysadmins and developers may download the .zip
file for this extension and
install it with the command-line tool cv.
cd <extension-dir>
cv dl attac-api@https://github.com/FIXME/attac-api/archive/master.zip
Sysadmins and developers may clone the Git repo for this extension and install it with the command-line tool cv.
git clone https://github.com/FIXME/attac-api.git
cv en attac_api
(* FIXME: Where would a new user navigate to get started? What changes would they see? *)
(* FIXME *)