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

Remove legacy check #19042

Merged
merged 1 commit into from
Nov 25, 2020
Merged

Remove legacy check #19042

merged 1 commit into from
Nov 25, 2020

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Nov 24, 2020

Overview

Removes a check that dates right back to when we started extracting IPN code from code blocks in the processor. I don't believe it's meaningful

Before

Confusing check basically tells us whether the paymentProcessorID is loadable.

    if ($paymentProcessorID) {
      $paymentProcessor = CRM_Financial_BAO_PaymentProcessor::getPayment($paymentProcessorID,
        $this->is_test ? 'test' : 'live'
      );
      $ids['paymentProcessor'] = $paymentProcessorID;
      $this->_relatedObjects['paymentProcessor'] = $paymentProcessor;
    }

After

While we are not technically checking for it / loading now - there are multiple api calls that should fail if the processor_id is invalid - e.g when creating the financial transaction

Technical Details

Comments

@civibot
Copy link

civibot bot commented Nov 24, 2020

(Standard links)

@civibot civibot bot added the master label Nov 24, 2020
@eileenmcnaughton eileenmcnaughton changed the title Remove legacy check [WIP] Remove legacy check - I have some more changes now but I'll see where tests get to Nov 24, 2020
@seamuslee001
Copy link
Contributor

@eileenmcnaughton needs a rebase

@eileenmcnaughton eileenmcnaughton changed the title [WIP] Remove legacy check - I have some more changes now but I'll see where tests get to Remove legacy check - I have some more changes now but I'll see where tests get to Nov 25, 2020
This check dates right back to when we started extracting IPN code from code blocks in the processor. I don't believe it's meaningful
@eileenmcnaughton eileenmcnaughton changed the title Remove legacy check - I have some more changes now but I'll see where tests get to Remove legacy check Nov 25, 2020
@seamuslee001 seamuslee001 merged commit 8a7df1b into civicrm:master Nov 25, 2020
@seamuslee001 seamuslee001 deleted the pps branch November 25, 2020 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants