Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move recurring handling to recur function in PaypalIPN #26560

Merged
merged 2 commits into from
Jun 23, 2023

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Jun 18, 2023

Overview

Move recurring handling to recur function in PaypalIPN

Before

The code looks like

    if ($this->getContributionRecurID()) {
       - load the recurring contribution
       -- figure out if it is the first contribution
       - call recur with these values
       - send a nofitifcation if applicable
       - return, end processing
    }

   function(recur)  {
   --- do recurring stuff
   }
   

After

    if ($this->getContributionRecurID()) {
         - call recur
          - return, end processing
    }

   function(recur)  {
          - load the recurring contribution
       -- figure out if it is the first contribution
   --- do recurring stuff
       - send a nofitifcation if applicable
   

Technical Details

This builds on earlier cleanup which makes this separation an easy next step

Comments

@civibot
Copy link

civibot bot commented Jun 18, 2023

(Standard links)

@civibot civibot bot added the master label Jun 18, 2023
The recur() call has some wranling leading into it that prepares the variables
for the function. This moves that wrangling to the recur() function.
@eileenmcnaughton
Copy link
Contributor Author

test this please

@seamuslee001
Copy link
Contributor

this seems ok to me

@seamuslee001 seamuslee001 merged commit 997d7df into civicrm:master Jun 23, 2023
@seamuslee001 seamuslee001 deleted the paypal_2 branch June 23, 2023 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants