Answers.Body: <p>The end date should update immediately, when the payment is processed and a contribution is created in CiviCRM. This doesn't require a cron job.</p>
  <p>I suggest you check to see that the contributions are correctly linked to the membership (via the membership payment table). If you view the membership it should show the related contributions and recurring contributions. If they aren't linked correctly this will mean that the membership doesn't update when a new payment is received.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-10-24T08:31:35.960Z
Answers.Text: Hello William, thank you for your time in looking into this. As you said I narrowed down the issue to the civicrm_membership_payment table which doesn't get updated when the payment is received. There is no entry of the latest contribution found in the civicrm_contribution table.
Answers.UserDisplayName: Evan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-10-24T09:25:36.567Z
Answers.Text: One more thing I wanted to add. Once we added the relationship manually on the civicrm_membership_payment for the missing recurrences and re-run the corn to update the status of the membership the end date again didn't update.
Answers.UserDisplayName: Evan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-10-24T18:30:41.290Z
Answers.Text: If a membership payment isn't created when the payment is received that sounds like an issue with the payment processor. I'm not familiar with that payment processor. It may be that it doesn't support recurring payments.
  
  If this is the payment processor you are using it says it only supports one off payments. https://civicrm.org/extensions/global-payments
Answers.UserDisplayName: William Mortada
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-10-24T18:32:21.773Z
Answers.Text: I'm afraid running the cron won't help with this. The end date should be updated when the payment is received.
Answers.UserDisplayName: William Mortada
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-10-27T08:08:44.643Z
Answers.Text: Again William thank you for your time and effort. I believe it is a  bespoke extension that they built on top of that one. The only weird bit about it is when we renew the subscription in any other way, meaning from the clients' account, email with renewal link etc it works, it's just the autorenewal that fails to update the expected new membership end date.
Answers.UserDisplayName: Evan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-11-04T12:03:13.353Z
Answers.Text: William thank you for all your help, I switched the payment gateway to Stripe and everything works now like a charm!
Answers.UserDisplayName: Evan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-11-04T15:08:32.157Z
Answers.Text: Great! Glad to hear it's working for you now.
Answers.UserDisplayName: William Mortada
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-10-21T10:57:24.180Z
Answers.LastActivityDate: 2022-10-21T10:57:24.180Z
Answers.UserDisplayName: William Mortada
Body: <p>I am having an issue with auto renew memberships. Civicrm 5.52.2 / Wordpress 6.0.3</p>
  <p>The payment is going through just fine. And the statuses (after a Cron run) update just fine but the end_date does not update to reflect the renewal period. Is it a cron I'm missing ?</p>
  <p>Please assist, and can you please let me know the name of the function/location responsible for updating the end_date so I can debug this further ?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-10-18T15:09:34.213Z
Comments.Text: Welcome to SE!  What payment processor are you using?
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-10-18T15:17:49.217Z
Comments.Text: Thank you Aidan for the welcoming and for your prompt response. 
  
  GlobalIris Payment Processor. ver 2.0
Comments.UserDisplayName: Evan
Tags: <civimember><auto-renew>
Title: CiviMember - end_date not updating after automatic renewal
ThreadText: # CiviMember - end_date not updating after automatic renewal
  
  (Asked by: username_0 on 2022-10-18)
  
  I am having an issue with auto renew memberships. Civicrm 5.52.2 / Wordpress 6.0.3
  
  The payment is going through just fine. And the statuses (after a Cron run) update just fine but the end\_date does not update to reflect the renewal period. Is it a cron I'm missing ?
  
  Please assist, and can you please let me know the name of the function/location responsible for updating the end\_date so I can debug this further ?
  
  **Tags:** civimember, auto-renew
  
  > **Comments:**
  > **username_1**: Welcome to SE!  What payment processor are you using?  
  > **username_0**: Thank you username_1 for the welcoming and for your prompt response.   GlobalIris Payment Processor. ver 2.0  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2022-10-21. Score: 1
  
  The end date should update immediately, when the payment is processed and a contribution is created in CiviCRM. This doesn't require a cron job.
  
  I suggest you check to see that the contributions are correctly linked to the membership (via the membership payment table). If you view the membership it should show the related contributions and recurring contributions. If they aren't linked correctly this will mean that the membership doesn't update when a new payment is received.
  
  > **Comments:**
  > **username_0**: Hello username_2, thank you for your time in looking into this. As you said I narrowed down the issue to the civicrm_membership_payment table which doesn't get updated when the payment is received. There is no entry of the latest contribution found in the civicrm_contribution table.  
  > **username_0**: One more thing I wanted to add. Once we added the relationship manually on the civicrm_membership_payment for the missing recurrences and re-run the corn to update the status of the membership the end date again didn't update.  
  > **username_2**: If a membership payment isn't created when the payment is received that sounds like an issue with the payment processor. I'm not familiar with that payment processor. It may be that it doesn't support recurring payments.  If this is the payment processor you are using it says it only supports one off payments. https://civicrm.org/extensions/global-payments  
  > **username_2**: I'm afraid running the cron won't help with this. The end date should be updated when the payment is received.  
  > **username_0**: Again username_2 thank you for your time and effort. I believe it is a  bespoke extension that they built on top of that one. The only weird bit about it is when we renew the subscription in any other way, meaning from the clients' account, email with renewal link etc it works, it's just the autorenewal that fails to update the expected new membership end date.  
  > **username_0**: username_2 thank you for all your help, I switched the payment gateway to Stripe and everything works now like a charm!  
  > **username_2**: Great! Glad to hear it's working for you now.  
  
  ---
  
  