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
(proposal) Code cleaning for payment method classes. #153
Conversation
@jonrandy I removed the whole 'payment methods' class. Can you help check it again? |
I think because you 'force pushed' I'm having trouble working out what you've actually removed as those commits are gone. I always find it best never to force push anything - unless it's a last resort to fix some Git weirdness |
@jonrandy about force push, you're right. I forgot. |
'Omise_Payment_Internetbanking', | ||
'Omise_Payment_Truemoney' | ||
); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note, I prefer this way instead of constant because it gives a flexibility on altering its payment's classname in the future if we make it extensible. As it's quite common in WordPress world. (i.e. WordPress style is kinda heavily using apply_filter( blah )
to open for a 3rd-party to make a change as they desire without editing the core code).
…e way to register a new payment method).
1. Objective
This code is a proposal of removing an unnecessary code for registering and listing up Omise payment methods.
Related information:
Related issue(s): T19568 (internal ticket)
2. Description of change
Refactoring part of code that was used for registering Omise payment methods to WooCommerce.
As well as, removing the redundant code.
3. Quality assurance
Making sure that all the payment methods can be listed out at the WooCommerce payment setting page.
Making sure that all the payment methods can be used as normal at WooCommerce checkout page.
4. Impact of the change
None
5. Priority of change
Normal
6. Additional Notes