Skip to content

ImaginateSolutions/payment-gateways-by-user-roles-for-woocommerce

Repository files navigation

=== Payment Gateways by User Roles for WooCommerce ===
Contributors: imagisol, dhruvin
Tags: woocommerce, payment gateway, user role, role based checkout, role based gateways, role based payments, paypal, cod, bacs, cheque payments, custom user roles, stripe, rule based checkout, custom payment gateway
Requires at least: 4.4
Tested up to: 6.4
Stable tag: trunk
License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Set user roles to include/exclude for WooCommerce payment gateways to show up.

== Description ==

**Payment Gateways by User Roles for WooCommerce** plugin lets you set user roles for payment gateways to show up.

For your WooCommerce store for each payment gateway you have two options to choose from:

* Set **included user roles** - payment gateway will be available *only* to selected roles.
* Set **excluded user roles** - payment gateway will be *not* available to selected roles.

Payment Gateways by User Roles for WooCommerce supports **custom user roles** as well present on your WooCommerce store.

You can also choose which user role must be considered for rule check - either the first assigned user role or all the roles assigned to the user.

With this plugin you can set user roles for four standard WooCommerce payment gateways: Direct bank transfer, Check payments, Cash on delivery and PayPal. To set user roles for all other payment gateways you will need [Payment Gateways by User Roles for WooCommerce Pro](https://imaginate-solutions.com/downloads/payment-gateways-by-user-roles-for-woocommerce/) plugin version.

[Payment Gateways by User Roles for WooCommerce Pro](https://imaginate-solutions.com/downloads/payment-gateways-by-user-roles-for-woocommerce/) supports almost all the payment gateways created for WooCommerce including Stripe for WooCommerce and [Custom Payment Gateways](https://imaginate-solutions.com/downloads/custom-payment-gateways-for-woocommerce/) created for WooCommerce.

> All I needed was some way to make sure **logged in users (just our admin staff) could take COD payments while Guest users (the general public) could only use credit cards for online payments**. This plugin does that very simply, it’s working perfectly, and I couldn’t be happier!
>
> **Perfectly Simple**
> - [WebbyMom](https://wordpress.org/support/topic/perfectly-simple-24/)

= Our other plugins =

* [Custom Shipping Methods for WooCommerce](https://imaginate-solutions.com/downloads/custom-shipping-methods-for-woocommerce/?utm_source=wporg&utm_medium=pgur&utm_campaign=readme/) - Create custom shipping methods for your WooCommerce store and manage dynamic shipping with ease.

* [Custom Payment Gateways for WooCommerce](https://imaginate-solutions.com/downloads/custom-payment-gateways-for-woocommerce/?utm_source=wporg&utm_medium=pgur&utm_campaign=readme/) - Create custom payment gateways for your WooCommerce store to add more payment options for the user to choose from.

* [WooCommerce Addon Uploads](https://imaginate-solutions.com/downloads/woocommerce-addon-uploads/?utm_source=wporg&utm_medium=pgur&utm_campaign=readme/) - Create a print on demand store by allowing users to upload their files when adding products to cart on your WooCommerce store.

* [Variations Radio Buttons for WooCommerce](https://imaginate-solutions.com/downloads/variations-radio-buttons-for-woocommerce/?utm_source=wporg&utm_medium=pgur&utm_campaign=readme/) - Convert your variations dropdown into radio buttons there by allowing customers a much better user experience and speeding up the checkout process.

* [WooCommerce Variations Reports](https://imaginate-solutions.com/downloads/woocommerce-variations-reports/?utm_source=wporg&utm_medium=pgur&utm_campaign=readme/) - Get a report of how your variations sales are happening on your WooCommerce Store.

= Feedback =
* We are open to your suggestions and feedback. Thank you for using or trying out one of our plugins!
* Please visit [Payment Gateways by User Roles for WooCommerce plugin page](https://imaginate-solutions.com/downloads/payment-gateways-by-user-roles-for-woocommerce/).

== Installation ==

1. Upload the entire plugin folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the "Plugins" menu in WordPress.
3. Start by visiting plugin settings at "WooCommerce > Settings > Payment Gateways by User Roles".

== Screenshots ==

1. Select which user roles must be checked.
2. Include or Exclude certain payment gateways for certain users.

== Changelog ==

= 1.3.0 - 11/10/2023 =
* HPOS Compatibility added
* PHP 8.2 Compatibility added

= 1.2.5 - 20/04/2023 =
* WC Tested upto 7.6

= 1.2.4 - 14/10/2021 =
* Fixed an issue where some times the gateway array would be set to empty string.
* WC tested up to: 5.8

= 1.2.3 - 29/08/2020 =
* Dev - Made the code PHPCS compliant.
* WC Tested upto 4.4

= 1.2.2 - 22/03/2020 =
* WC tested up to: 4.0.

= 1.2.1 - 28/11/2019 =
* Dev - Admin settings descriptions updated.
* Dev - Code refactoring.
* Tested up to: 5.3.
* WC tested up to: 3.8.

= 1.2.0 - 25/07/2019 =
* Dev - "Check user roles" option added (defaults to "All roles").
* Tested up to: 5.2.

= 1.1.1 - 20/04/2019 =
* Dev - Admin settings descriptions updated.
* Dev - Code refactoring.
* Dev - "Tested up to" and "WC tested up to" updated.

= 1.1.0 - 15/11/2018 =
* Dev - Admin settings restyled. Settings descriptions updated. "Enabled" gateway icons added to admin settings.
* Dev - All standard WooCommerce payment gateways added to free version.
* Dev - Code refactoring.
* Dev - Plugin URI updated.

= 1.0.0 - 27/04/2018 =
* Initial Release.

== Upgrade Notice ==

= 1.0.0 =
This is the first release of the plugin.