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

Question: Filter out Payment Method on Payment Step? #488

Open
osseonews opened this issue Nov 16, 2024 · 0 comments
Open

Question: Filter out Payment Method on Payment Step? #488

osseonews opened this issue Nov 16, 2024 · 0 comments
Labels
feature 🚀 New feature or request

Comments

@osseonews
Copy link

Hi,
We forked this repo as we need to customize the checkout for our store. We had a quick question: In the final payment step, we have active payment methods for our store that we only use internally (via the API or CLI), but we don't want those to show publicly on the checkout page. How do we filter those out in the code so that only the "public" payment methods show? We can't seem to figure out in the code where that can be done. Can you let us know how we can do that? Incidentally, I think this is a decent feature to add to the repo. Maybe have the payment methods that can be used (or ones that cannot) be stored in an environment variable or stored in the reference for the payment method in Commerce Layer, and then have the code filter these in the payment method step. So maybe in the reference field for the payment method, you have "private", and the code filters these out on the payment method step.

Thanks.

@osseonews osseonews added the feature 🚀 New feature or request label Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🚀 New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant