Locked Payment Methods is a WooCommerce extension for hiding enabled payment methods from customers that haven't been granted access to them yet.
A typical use-case involves locking high-risk payment methods like
Cash on delivery or
Pay by invoice but you can choose to lock any payment method supported by WooCommerce for any reason.
By locking them, these payment methods are automatically removed from the WooCommerce checkout page for any customer that hasn't been granted access. You can then choose to grant access on a case-by-case basis or based on other objective criteria for logged-in users that you trust. Everyone else will be forced to check out using any of the other payment methods that your store provides.
Granting your customers access to a locked payment method
There are multiple pre-bundled ways of to grant a customer access to a locked payment method. They are all documented in our knowledge base:
- Grant access to each customer individually (read more)
- Grant access to all customers belonging to given user roles (read more)
- [Premium] Grant access for only one unpaid order (read more)
- [Premium] Grant access to all users with an active WC Memberships plan (read more)
- [Premium] Grant access to all users belonging to a Groups group (read more)
Premium support and features
Some of the unlocking strategies mentioned above are only bundled with the premium version of our plugin available
here. It is perfectly possible, however, to use the free version and extend it via filters and actions with your own lock/unlock strategies.
Premium customers are also entitled to prioritized help and support through
our support forum.
This plugin requires WooCommerce 4.5+ to run. If you're running a lower version, please update first. After you made sure that you're running a supported version of WooCommerce, you may install
Locked Payment Methods for WooCommerce
either manually or through your site's plugins page.
INSTALL FROM WITHIN WORDPRESS
- Visit the plugins page withing your dashboard and select
Add New
.
- Search for
Locked Payment Methods for WooCommerce
and click the Install Now
button.
- Activate the plugin from within your
Plugins
page.
INSTALL MANUALLY
- Download the plugin from https://wordpress.org/plugins/ and unzip the archive.
- Upload the
locked-payment-methods-for-woocommerce
folder to the /wp-content/plugins/
directory.
- Activate the plugin through the
Plugins
menu in WordPress.
AFTER ACTIVATION
If the minimum required version of WooCommerce is present, you will find a section present in the
Payments
tab of the WooCommerce
Settings
page. This section is called
Locked Payment Methods
. There you will be able to:
- Choose which enabled payment methods are locked by default.
- Choose which unlocking strategies you want to use and configure them, if applicable.
1.3.5 (July 13th, 2022)
- Tested up to WordPress 6.0.1.
- Tested up to WooCommerce 6.7.0.
- Updated Freemius SDK.
1.3.4 (March 20th, 2022)
- Tested up to WooCommerce 6.3.
- Security: updated Freemius SDK.
1.3.3 (February 8th, 2022)
- Test up to WordPress 5.9.
- Dev: updated DWS framework.
1.3.2 (January 14th, 2022)
- Tested up to WooCommerce 6.1.
- Tested up to PHP 8.1.
- Better handling of framework initialization failure.
- Dev: updated DWS framework.
1.3.1 (December 2nd, 2021)
- Tested with the latest version of WordPress.
- Performance: optimized PSR4 autoloader.
- Dev: hook tags can now be generated before the plugin is initialized.
- Dev: updated DWS Framework.
1.3.0 (November 15th, 2021)
- Tested with the latest versions of WP and WC.
- Additional licensing terms for redistribution.
- Fixed readme.txt formatting.
- Dev: Updated DWS Framework.
- Dev: Updated dependencies namespace. If you have custom code, please check for compatibility.
- Dev: fixed CI/CD tests.
1.2.1 (September 26th, 2021)
- Fixed text domain within the dependencies folder.
- Fixed PHP8 error on settings page.
1.2.0 (September 24th, 2021)
- Tested with the latest version of WordPress and WooCommerce.
- Dev: updated the DWS framework.
- Dev: added more automated tests.
1.1.0 (July 26th, 2021)
- Tested with latest versions of WooCommerce and WordPress.
- Dev: changed capabilities names to better reflect those registered by WordPress Core.
- Dev: bootstrap functions belong to the global namespace now.
- Dev: updated DWS plugin framework.
1.0.0 (May 29th, 2021)