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

CRM-20336: Failed contributions should be set as failed, not left as pending #10041

Merged
merged 4 commits into from
Mar 29, 2017

Conversation

mlutfy
Copy link
Member

@mlutfy mlutfy commented Mar 23, 2017

@eileenmcnaughton
Copy link
Contributor

@bgm test failures are real, because you have changed the behaviour & it is checking the old behaviour. On the bright side... you know where to put the tests....

I'm still a little on the fence about this - because it's not uncommon for a payment to fail & money to them come in another way, completing the contribution. But it was endorsed by others on chat & I'm happy to accept that.

@mlutfy
Copy link
Member Author

mlutfy commented Mar 29, 2017

@eileenmcnaughton Do these changes seem OK?


civicrm_api3('contribution', 'create', array(
'id' => $contributionID,
'contribution_status_id' => $failed,
Copy link
Contributor

Choose a reason for hiding this comment

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

If you are calling the api you can save some lines with

'contribution_status_id' => 'Failed',

@eileenmcnaughton
Copy link
Contributor

yep - but you might want to just save those lines by letting the api resolve the status

@eileenmcnaughton
Copy link
Contributor

Setting to merge on pass. Fix & tests look good & there was agreement on dev-financial channel in mattermost regarding this

@seamuslee001
Copy link
Contributor

@eileenmcnaughton this has now passed tests again

@eileenmcnaughton eileenmcnaughton merged commit 9204f0a into civicrm:master Mar 29, 2017
@eileenmcnaughton
Copy link
Contributor

@jitendrapurohit I think you are working on a related issue where more aggressively failing transactions may impact on memberships? Might want to make sure that fix is also in 4.7.19

@petednz
Copy link

petednz commented Mar 29, 2017

Yes there is the issue for us fz-r10066 and CRM-18177

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.

5 participants