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

dev/financial#131 Fix Realex processor to correctly throw an exception #17559

Merged
merged 1 commit into from
Jun 9, 2020

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Fix Realex processor to correctly throw an exception as part of our push to model best practice in core processors

Before

returns a core error - relies on parent to convert it

After

throws a PaymentProcessorException

Technical Details

https://lab.civicrm.org/dev/financial/-/issues/131 & parent issues

Comments

@civibot
Copy link

civibot bot commented Jun 9, 2020

(Standard links)

@civibot civibot bot added the master label Jun 9, 2020
$hashme = "$sha1hash.{$this->_getParam('secret')}";
$sha1hash = sha1($hashme);

if ($response['SHA1HASH'] != $sha1hash) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

No content in this if - so lines above also do nothing

@seamuslee001
Copy link
Contributor

Jenkins re test this please

@seamuslee001 seamuslee001 merged commit c0bac35 into civicrm:master Jun 9, 2020
@seamuslee001 seamuslee001 deleted the realex branch June 9, 2020 03:34
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.

2 participants