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 Give deprecation notice if the payment processor returns an error #17596

Merged
merged 1 commit into from
Jun 14, 2020

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Payment Processors are expected to throw PaymentProcessorExceptions rather than return CRM_Core_Error objects - we have fixed all the core ones & some community ones (IATS) are fixed whereas others have not returned error objects for some time - this should flush out the others

Deprecation notices will be visible on sites that are in developer mode (which translates to the presence of .git or .svn) and have e-notice settings that surface Deprecated level bugs.

Also note that this will not affect process who implement doPayment (recommended)

Before

CRM_Core_Payment silently handles returned errors,

After

CRM_Core_Payment noisily handles returned errors.

Technical Details

Comments

…turns an error

This notice will show up on dev sites & should highlight the expectation that processors throw errors
@civibot
Copy link

civibot bot commented Jun 13, 2020

(Standard links)

@seamuslee001
Copy link
Contributor

Merging as this seems sensible to me

@seamuslee001 seamuslee001 merged commit 534731d into civicrm:master Jun 14, 2020
@seamuslee001 seamuslee001 deleted the deprecation branch June 14, 2020 01:11
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