定制 vivlavoni/module-disable-payment-for-customer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

vivlavoni/module-disable-payment-for-customer

Composer 安装命令:

composer require vivlavoni/module-disable-payment-for-customer

包简介

Disable payment methods for customer

README 文档

README

Overview

Disable Payment Methods for Customer – Magento 2 Extension by ViVlaVoNi The Disable Payment Methods for Customer module is developed by ViVlaVoNi, a company specializing in Magento 2 solutions for small eCommerce businesses. ViVlaVoNi delivers lightweight, efficient modules tailored for single-store merchants and resellers. Learn more about us at ViVlaVoNi.

This extension gives you fine-grained control over which payment methods are available to specific customers. Whether you want to restrict high-risk methods like Cash on Delivery or enable offline methods only for trusted clients, this module lets you create a custom whitelist of customers for payment method—all manageable via the Magento Admin Panel.

Account & Pricing:

No account is required to use this extension. All features are included out of the box. There are no subscription fees or third-party services involved.

Features:

  • Customer Whitelisting for Payment Methods Enable specific payment methods only for selected customers by adding them to a whitelist.
  • Disable Global Payment Methods by Default Disable any payment method for all customers and selectively enable it only for trusted individuals.
  • Admin Panel Management Interface Easily manage the list of customers and assign them access to one or more payment methods from the admin.
  • Supports All Payment Methods Works with any payment method configured in Magento 2, including offline and third-party gateways.
  • Store View Support Configure behavior per store view if needed for multi-store setups.

Benefits

  • Improved Checkout Experience Customers only see payment methods they are allowed to use—cleaner and more user-friendly checkout.
  • Flexible Payment Rules Create flexible business logic without custom development by leveraging Magento’s admin UI.

Use Case:

You're a merchant selling both to individual customers and wholesale partners. You want to:

  • Disable Cash on Delivery for all customers by default but enable them for customers fromthe whitelist.

With this extension:

  • You disable “Cash on Delivery” globally.
  • You go into the admin panel and whitelist only a few customers for this method.
  • Now, only those customers will see it at checkout—everyone else won’t.

How Does It Work:

Global Method Control You disable any payment method globally in Magento's standard configuration.

  • Customer Whitelisting in Admin In a dedicated admin section, you select which customers should still have access to the disabled method.
  • Frontend Filtering at Checkout During checkout, the module checks the logged-in customer's whitelist and shows only the allowed payment options.

Installation via rar

  • unpack the module into a folder app/code
  • run command bin/magento setup:upgrade
  • run command bin/magento cache:flush

Uninstall via composer

  • Remove folder app/code/Vivlavoni/DisablePaymentForCustomer
  • run command bin/magento setup:upgrade
  • run command bin/magento cache:flush

Installation via composer

  • Run composer require vivlavoni/module-disable-payment-for-customer

Uninstall via composer

  • Run composer remove vivlavoni/module-disable-payment-for-customer

Module Images of functionality

  • Config

    config

Compatibility

  • Magento 2.4

Dependencies

  • Magento_Checkout

Requirements

  • PHP ^7.4 || ^8.1

Author

ViVlaVoNi company

Volodymyr Blazhkov r2d2maloy98@gmail.com

  • @copyright 2025 Volodymyr Blazhkov internet solutions GmbH

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2025-07-15