Download the PHP package sharpmonks/module-payment-filter without Composer

On this page you can find all versions of the php package sharpmonks/module-payment-filter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package module-payment-filter

SharpMonks PaymentFilter Magento2 Extension

SharpMonks Magento 2 paymentFilter Extensions for Products, Customers and Customer Groups

This module enables you to select which payment methods are available for every customer and customer group. Also, Payment methods can be disabled for specific products.

A customer can only use the payment methods during checkout available to his (customer group OR himself) AND not disabled for the products in the shopping cart.

This module is the Magento 2 version of this Magento 1 module https://github.com/riconeitzel/PaymentFilter

Compatibility

This extension supports Magento 2.2.x and 2.3.x.

Points to remember

After installing this extension you have to configure the payment methods available to each customer group.

You can do that in the admin interface under Customers > Customer Groups. The default is NONE, so if you don't do that NO payment methods will be available and customers will not be able to check out.

The default for products is to allow ALL payment methods, so you only have to configure the payment methods available to every group. Only change the product level payment method configuration if you want to disable one or more payment method for a specific products.

Disable Extension

The whole extension can be disabled in "Stores > Configuration > Sales > Checkout" on a Global or Website scope.

Composer Installation

composer require sharpmonks/module-payment-filter

Uninstall

If you ever uninstall the extension (I don't hope so :)) your site will be broken, because Magento doesn't support database updates on uninstalls to remove attributes.

To fix the error, execute the following SQL:

DELETE FROM eav_attribute WHERE attribute_code = 'product_payment_methods';

DELETE FROM setup WHERE code = 'payfilter_setup';

ALTER TABLE customer_group DROP allowed_payment_methods;

IMPORTANT! Then clear the magento cache.

Maintainer

If you have ideas for improvements or find bugs, submit here: https://github.com/sharpmonks/paymentFilter/issues

Create pull requests and I'll review them to approve for merge.

License

This module is licensed under OSL-3.0


All versions of module-payment-filter with dependencies

PHP Build Version
Package Version
Requires magento/framework Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sharpmonks/module-payment-filter contains the following files

Loading the files please wait ...