Answers.Body: <p>Can you just Add/Renew a membership and record a payment?</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-08-09T14:21:23.023Z
Answers.Text: A contact can have only one membership for this type and make "n" contributions at different times. I cannot use "Renew membership" because the renew process has not pricesets. I have to registrer the quantity of shares that the contact buys.
Answers.UserDisplayName: masetto
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-08-09T10:06:56.820Z
Answers.LastActivityDate: 2024-08-09T10:06:56.820Z
Answers.UserDisplayName: Pradeep Nayak
Answers.Body: <p>You are right that the membership payment extension hasn't been updated in a while but we have it installed on a site and it is still working fine as far as I'm aware.</p>
  <p>You need to apply this PR though to improve compatibility with recent CiviCRM and PHP versions: <a href="https://github.com/CiviCooP/org.civicoop.membershippayment/pull/7" rel="nofollow noreferrer">https://github.com/CiviCooP/org.civicoop.membershippayment/pull/7</a></p>
  <p>UPDATE: <a href="https://github.com/CiviCooP/org.civicoop.membershippayment/releases/tag/1.2" rel="nofollow noreferrer">version 1.2</a> has been released which should work with the current versions of CiviCRM. I've tested with CiviCRM 5.75</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-08-25T13:32:01.357Z
Answers.Text: Many thanks William, it was just what I needed.
Answers.UserDisplayName: masetto
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-08-26T14:06:02.540Z
Answers.Text: Glad to be of help!
Answers.UserDisplayName: William Mortada
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-08-23T10:43:53.870Z
Answers.LastActivityDate: 2024-08-23T14:47:51.390Z
Answers.LastEditDate: 2024-08-23T14:47:51.390Z
Answers.UserDisplayName: William Mortada
Body: <p>I have a lifetime membership: it concerns shares in the organisation that a user can buy.</p>
  <p>From the backend I would like to register a contribution and attach it to the membership. How can I do this?</p>
  <p>I know that exists the extension <a href="https://github.com/CiviCooP/org.civicoop.membershippayment" rel="nofollow noreferrer">membershippayment</a> (see <a href="https://civicrm.stackexchange.com/questions/26680/is-it-possible-to-reassign-a-contribution-linked-to-a-membership">this comment</a>), but it seems abandoned. Can we do so and update it? Or do you recommend another way?</p>
  <p>Thank you</p>
  
Tags: <civicontribute><civimember>
Title: Register a contribution and attach it to the membership
ThreadText: # Register a contribution and attach it to the membership
  
  (Asked by: username_0 on 2024-08-09)
  
  I have a lifetime membership: it concerns shares in the organisation that a user can buy.
  
  From the backend I would like to register a contribution and attach it to the membership. How can I do this?
  
  I know that exists the extension [membershippayment](https://github.com/CiviCooP/org.civicoop.membershippayment) (see [this comment](https://civicrm.stackexchange.com/questions/26680/is-it-possible-to-reassign-a-contribution-linked-to-a-membership)), but it seems abandoned. Can we do so and update it? Or do you recommend another way?
  
  Thank you
  
  **Tags:** civicontribute, civimember
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2024-08-23. Score: 3 | Accepted answer
  
  You are right that the membership payment extension hasn't been updated in a while but we have it installed on a site and it is still working fine as far as I'm aware.
  
  You need to apply this PR though to improve compatibility with recent CiviCRM and PHP versions: <https://github.com/CiviCooP/org.civicoop.membershippayment/pull/7>
  
  UPDATE: [version 1.2](https://github.com/CiviCooP/org.civicoop.membershippayment/releases/tag/1.2) has been released which should work with the current versions of CiviCRM. I've tested with CiviCRM 5.75
  
  > **Comments:**
  > **username_0**: Many thanks username_2, it was just what I needed.  
  > **username_2**: Glad to be of help!  
  
  ---
  
  ### Answer by username_1 on 2024-08-09. Score: 0
  
  Can you just Add/Renew a membership and record a payment?
  
  > **Comments:**
  > **username_0**: A contact can have only one membership for this type and make "n" contributions at different times. I cannot use "Renew membership" because the renew process has not pricesets. I have to registrer the quantity of shares that the contact buys.  
  
  ---
  
  