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

Spike: Investigate further simplifications to the payment method definition/registration process #10456

Open
brettshumaker opened this issue Feb 26, 2025 · 0 comments
Assignees
Labels
category: projects For any issues which are part of any project, including bugs, enhancements, etc. focus: checkout payments type: spike

Comments

@brettshumaker
Copy link
Contributor

brettshumaker commented Feb 26, 2025

Description

In #10217, we will merge (or "have merged" depending on when you're reading this) a mechanism to be able to register a payment method in WooPayments using a definition file. The goal is to simplify the process of adding/removing payment methods to the plugin. While the mechanism is functional, we think there might be another level of simplification we can add to further improve the payment method definition process.

Let's do a spike to investigate the possibility of doing away with the individual payment method classes and only passing the payment method definitions into the UPE_Payment_Method constructor. Keep in mind that we'll be gradually converting existing payment methods so any change will need to support both use cases until all payment methods have been converted.

Additional context

The comment that sparked this spike issue can be found here.

@haszari haszari added category: projects For any issues which are part of any project, including bugs, enhancements, etc. focus: checkout payments labels Feb 27, 2025
@brettshumaker brettshumaker self-assigned this Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: projects For any issues which are part of any project, including bugs, enhancements, etc. focus: checkout payments type: spike
Projects
None yet
Development

No branches or pull requests

2 participants