-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
[REF] Refactor adding payment processor radio section onto register a… #16595
[REF] Refactor adding payment processor radio section onto register a… #16595
Conversation
(Standard links)
|
@seamuslee001 I think the shared trait is a better place (avoids static functions too) |
8502892
to
612ffb3
Compare
@seamuslee001 the trait I referred to is CRM_Financial_Form_FrontEndPaymentFormTrait |
@eileenmcnaughton at present on the event form is using the trait i think not contribution page |
actually take that back wrong |
lol |
612ffb3
to
cd22c58
Compare
ok its on the trait now @eileenmcnaughton |
@seamuslee001 I worked through the same extraction & came up with a slightly different function
|
@eileenmcnaughton just on the function name, I wanted to be clearer about the fact that it is the front end, on the back office fields it is a select field rather than radio button so as this function is only dealing with the front end adding of payment processors i wanted to be more explicit on that |
Doesn't the fact it's on the FrontEndPaymentFormTrait make that obsolete? |
I guess so |
cd22c58
to
e959496
Compare
have updated it now @eileenmcnaughton |
…nd contribution main forms Move Contribute form specific handling back to its own form Move shared function to the trait
e959496
to
1421b01
Compare
@eileenmcnaughton is this good now? |
…nd contribution main forms
Overview
Following the merge of https://github.com/civicrm/civicrm-core/pull/15940/files and picking up a comment in a DM from ages ago from @eileenmcnaughton i think we should try and refactor this a little
Before
Multiple places adding in the radio select option for Payment Processors
After
Single function
ping @mattwire