CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Membership Management via API Question
Pages: [1]

Author Topic: Membership Management via API Question  (Read 679 times)

dtheweather9

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 1
    • Students for the Exploration and Development of Space, USA
  • CiviCRM version: 4.4.0
  • CMS version: WordPress 3.8.1
  • MySQL version: 5.1.56
  • PHP version: 5.4.11
Membership Management via API Question
April 04, 2013, 06:42:56 am
I'm in the process of writing a plugin using the api for a few things, and I'd like to include a membership management module for group managers.  More or less I've got it setup for front end syncing of a 3rd party app (buddypress) with the users list of member types.  Under the buddypress group admin setup, I'm able to spit out a list of the membership from civicrm of that particular buddypress group (which coincides with the CiviMember member types in that organization).

With that, I would like to basically have it so that those users with admin abilities can manage the membership of the organization, by having the member list also have a 'renew' and 'cancel' option. 

Are all of the renewal and cancellation options based around the membership api (end-date and membership type) or would I also be required to manipulate the payment renewal setup with each payment processor for renewing payments?
Thanks

dtheweather9

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 1
    • Students for the Exploration and Development of Space, USA
  • CiviCRM version: 4.4.0
  • CMS version: WordPress 3.8.1
  • MySQL version: 5.1.56
  • PHP version: 5.4.11
Re: Membership Management via API Question
April 26, 2013, 08:57:39 am
Getting around to this again (and I guess restating the question hopefully more straight forward)

How exactly are cancellations handled with Civicrm and payment processors for memberships?  I can't seem to find any documentation on it

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Membership Management via API Question
May 04, 2013, 11:10:40 pm
Hi,

Good question, I haven't tested yet.

I'd assume that using the membership api does update the related contribution properly. If it isn't the case, it should be added IMO (may be introduce a option.update_contribution new param).

It would be great if you could write a unit test to verify how the contribution is updated, so it puts this relationship in the radar and if the way the contribution is not  changed anymore the way you expect it too, we will see it directly.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Membership Management via API Question

This forum was archived on 2017-11-26.