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

Fix probably-unused core payment processors to throw extensions #17502

Merged
merged 1 commit into from
Jun 7, 2020

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Make FirstData and Payjunction comply with our error handling expectations

Before

return self::errorExit(9003, $message);

After

throw new PaymentProcessorException($message, 9003);

Technical Details

These 2 processors are probably entirely unused and are not enabled on new installs. However, as they are still in core,
and removing them will take a plan + time, we should have them model 'good behaviour' - ie throwing exceptions
rather than returning errors

Comments

@civibot
Copy link

civibot bot commented Jun 5, 2020

(Standard links)

@civibot civibot bot added the master label Jun 5, 2020

/* Check for application errors */

$result = self::checkResult($pjpgResponse);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function does nothing

@seamuslee001
Copy link
Contributor

Jenkins re test this please

These 2 processors are probably entirely unused and are not enabled on new installs. However, as they are still in core,
and removing them will take a plan + time, we should have them model 'good behaviour' - ie throwing exceptions
rather than returning errors
@seamuslee001
Copy link
Contributor

changes look fine to me merging

@seamuslee001 seamuslee001 merged commit b6fb577 into civicrm:master Jun 7, 2020
@seamuslee001 seamuslee001 deleted the first branch June 7, 2020 06:27
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