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

Create contribution before taking payment, per contribution page workflow #13837

Merged
merged 1 commit into from Apr 14, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Mar 15, 2019

Overview

Also exploring this https://github.com/civicrm/civicrm-core/pull/13763/files - diff between this & @mattwire is that I figure removing the $pending parameter from CRM_Event_Form_Registration_Confirm::processContribution affects 2 forms so I thought I'd try limiting the scope by just passing it as TRUE from one form

Before

No record of contribution if payment processor fails.

After

Contribution is created before payment processor is called, so there is always a contribution record even if payment fails. Contribution ID is available to the payment processor and we can update it with our own parameters, rather than passing them back to the event handling code which subsequently saves them on the contribution.

Technical Details

If the PR introduces noteworthy technical changes, please describe them here. Provide code snippets if necessary

Comments

Anything else you would like the reviewer to note

@civibot civibot bot added the master label Mar 15, 2019
@civibot
Copy link

civibot bot commented Mar 15, 2019

(Standard links)

@eileenmcnaughton eileenmcnaughton changed the title Create contribution before taking payment, per contribution page work… [wip]Create contribution before taking payment, per contribution page work… Mar 15, 2019
@eileenmcnaughton eileenmcnaughton force-pushed the event_conf branch 2 times, most recently from e6756e7 to e1cf69b Compare March 16, 2019 06:50
@eileenmcnaughton
Copy link
Contributor Author

@mattwire this seems 'simple' but I guess we'll need to think about manual & unit testing - I guess the riskier areas are around waitlists, mutliple participants & also what emails go out

@eileenmcnaughton
Copy link
Contributor Author

test this please

@eileenmcnaughton eileenmcnaughton added this to needs work to be reviewable in review board Mar 18, 2019
@eileenmcnaughton eileenmcnaughton changed the title [wip]Create contribution before taking payment, per contribution page work… Create contribution before taking payment, per contribution page work… Mar 18, 2019
@eileenmcnaughton
Copy link
Contributor Author

@jitendrapurohit @monishdeb @pradpnayak @seamuslee001 can I ask you to try testing this. It's a simple & important change (switches events to the create pending & then confirm flow) but the events code is pretty nasty. I'd like to merge it shortly after 5.13 is cut

@eileenmcnaughton
Copy link
Contributor Author

@mattwire what is your thinking? Wait til the rc is cut & merge so it gets the longest rc period?

@mattwire
Copy link
Contributor

mattwire commented Apr 4, 2019

@eileenmcnaughton So the RC will be 5.13? which will be ESR? in which case let's leave it until the RC is cut as I think we are good with this change, but it does have more potential for regressions than some and would be better not in the ESR.

@eileenmcnaughton
Copy link
Contributor Author

@mattwire I don't think avoiding putting higher risk changes in the ESR makes sense. Our best stability comes from when many people upgrade so it could be an argument in FAVOUR of the ESR.
That would be fairer in a way since I think ESR is not fully costing the direct costs so we shouldn't also be protecting them from the indirect costs.

However, the goal of waiting is that we would have a longer period between merge & release

@mattwire mattwire changed the title Create contribution before taking payment, per contribution page work… Create contribution before taking payment, per contribution page workflow Apr 14, 2019
@mattwire
Copy link
Contributor

Merging now so we are in the next RC (5.14)

@mattwire mattwire merged commit e48ed44 into civicrm:master Apr 14, 2019
review board automation moved this from needs work to be reviewable to done Apr 14, 2019
@eileenmcnaughton eileenmcnaughton deleted the event_conf branch April 14, 2019 23:47
@eileenmcnaughton
Copy link
Contributor Author

thanks @mattwire I guess it would be good to look at extending tests on events now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants