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-21265: update payment status to Failed if membership transaction… #11072

Merged
merged 1 commit into from
Nov 14, 2017

Conversation

sunilpawar
Copy link
Contributor

update payment status to Failed if membership transaction is declined

Overview

Online page configured for Membership signup with payment processor.
If transaction get declined due to any reason. payment record status should change to 'Failed' from 'Pending' (incomplete transaction).
Before

when transaction declined, exception thrown but not way to update payment status.

After

added additional catch block which update payment status to 'Failed'

@monishdeb
Copy link
Member

Tested and agree with the fix. @eileenmcnaughton can I merge this PR?

NOTE: there is a reason we need two exceptions here to catch as processMembership(...) also throw CRM_Core_Exception

@monishdeb monishdeb changed the title CRM-21265 , update payment status to Failed if membership transaction… CRM-21265: update payment status to Failed if membership transaction… Oct 24, 2017
@eileenmcnaughton
Copy link
Contributor

this makes sense - happy to merge on @monishdeb testing

@eileenmcnaughton eileenmcnaughton merged commit 781d648 into civicrm:master Nov 14, 2017
sluc23 pushed a commit to ixiam/civicrm-core that referenced this pull request Jan 10, 2018
CRM-21265: update payment status to Failed if membership transaction…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants