Payment and Shipping Restrictions for Magento 2

Intelligent management of shipping and payment methods.
Compatibility
2.4.9, 2.4.8, 2.4.7, 2.4.6, 2.4.5, 2.4.4, 2.4.3, 2.4.2, 2.4.1, 2.4.0
€61.50
per item
Email to a Friend

Enquire about this product

Description / Payment and Shipping Restrictions for Magento 2

MAGENTO 2 · SHIPPING · PAYMENTS · CART RULES

Show customers the right shipping and payment methods.

Kowal Payment Restriction

Adjust the availability of cash on delivery, parcel lockers, store pickup, and international shipping to your store rules. Manage restrictions in the Magento admin panel to organize choices at checkout.

COD limits · Product flags · International shipping

HOW IT WORKS IN PRACTICE

01 · You configure methods
You assign shipping methods to COD groups, pickup points, and international shipping.

02 · You flag products
You indicate products that require shipping restrictions.

03 · Magento filters choices
The cart takes into account the country, value, and contents of the order.

What does your store gain?

Explore the module features, use cases, and settings.

Meet the module

Payment and Shipping Restrictions is an advanced module for Magento 2 that lets you precisely control the availability of shipping and payment methods depending on cart contents, delivery country, and selected business rules.

The module solves one of the most common problems in online stores:

the customer sees a method they ultimately cannot use (for example COD, parcel lockers, store pickup).

As a result:

  • the customer does not reach a checkout dead end

  • the store can reduce causes of cart abandonment

  • shipping and payment logic is clear, predictable, and scalable

Cash on delivery (COD) control

  • assign COD only to selected shipping methods
  • minimum and maximum cart value for COD
  • automatic COD blocking for:
    • oversized products
    • international shipments
  • support for dynamic methods by matching names (for example BLPaczka, GLS, DPD)

Restrictions for parcel lockers and pickup points

  • option to indicate methods supporting:
    • parcel lockers
    • Orlen Paczka
    • pickup points
  • automatic blocking if the cart contains products:
    • with the block shipping to parcel locker attribute
    • with large dimensions

Store pickup control

  • define shipping methods treated as Store Pickup

  • option to disable store pickup for:

    • oversized products

    • specific cart configurations

International shipping – full control

  • automatic detection of international shipping (country ≠ store country)

  • selection of methods available for international shipments

  • automatic surcharge (for example +15 EUR)

  • exclusion of COD for international shipments through proper method mapping

  • everything configured from the admin panel

     

One logic – two checkout steps

The module works:

  • at the shipping selection step

  • at the payment selection step

As a result:

  • rules limit the availability of prohibited combinations

  • shipping and payment choices use shared logic

  • checkout is consistent and predictable

Who is this module for?

 

  • B2C and B2B stores

  • stores with international shipping

  • stores with oversized products

  • stores using BLPaczka, GLS, DPD, Orlen, InPost

  • projects that require a stable, predictable checkout

Why is this solution safe?

 

  • no Magento core overrides

  • logic based on RateRequest and Quote in the right places

  • fail-safe: in case of an error, methods do not disappear

  • intended for Magento 2.4.x; compatibility with a specific version and integrations requires verification

Method configuration and product flagging

You can find the settings under Stores → Configuration → Kowal → Payment Restriction. Select methods for Cash on Delivery, Parcel Lockers, Store Pickup, and International Shipping, and set COD value thresholds and the international surcharge.

The product attribute block_send_with_locker (Block Send With Locker) triggers restrictions for flagged items. This is not automatic weight or dimension analysis; you flag products that require blocking in the catalog.

How are payments linked to shipping?

A shipping method marked as COD allows the cashondelivery payment method, while other payments are hidden for it. For methods not assigned to COD, the module hides cash on delivery. This is a specific link between COD and shipping, not a flexible editor for all payment combinations.

COD limits apply to the product value excluding shipping cost; a threshold of 0 disables the given limit. Method matching is based on the carrier code and normalized method name, which enables support for dynamic names.

International shipping, surcharge, and configuration scope

International shipping means a country different from the store default country. In such a cart, methods indicated for international shipping remain available, and a positive surcharge increases the price and cost of those methods. Adding a method to this list does not, by itself, exclude it from domestic deliveries.

To exclude COD for international shipping, choose the international method list and COD list appropriately — the country comparison alone does not block cashondelivery regardless of mapping. The +15 EUR example requires checking the settlement currency; the code adds a numeric value and does not perform separate currency conversion.

When reading many rules, the code uses the configuration of store 0. For different rules across multiple store views, confirm the settings scope of the delivered version.

Error handling and implementation verification

The solution uses Magento plugins, RateRequest, and Quote. Exception handling logs errors and aims to preserve method availability. This does not replace verification of the complete payment and carrier configuration.

The debug option logs decisions in var/log/kowal_paymentrestriction.log. During implementation, check carts with flagged and regular products, COD thresholds, delivery country, and the dynamic methods of the integrations you use.

Installation via Composer

Package kowal/module-paymentrestriction, module Kowal_PaymentRestriction. After configuring access to the Kowal repository, install the package, enable the module, update Magento, and clear the cache. In production, include compilation and static content deployment according to your store process.

See the module interface

Payment Restriction — interface view 1Payment Restriction — interface view 1

From configuration to result

1. You configure methods
You assign shipping methods to COD groups, pickup points, and international shipping.

2. You flag products
You indicate products that require shipping restrictions.

3. Magento filters choices
The cart takes into account the country, value, and contents of the order.

Large product without parcel locker shipping

You flag the product with the block shipping to parcel locker attribute. After it is added to the cart, the module hides the methods assigned to this group.

With separate settings, you can disable COD and store pickup for such a cart. Restrictions come from the product flag, not from automatic dimension measurement.

Organize shipping and payment selection

Want to adapt the module to your store? Ask about Kowal Payment Restriction implementation and discuss configuration or required extensions.

More Information

Theme compatibility Luma / Blank, KOWAL

Module Installation Instructions

Installation via Composer

Composer repository access credentials (customer email address and license token) will be sent to you by email after purchase. They are also available in the customer panel after logging in at kowal.store. Replace TWOJ_EMAIL_KLIENTA with your account email address and TWOJ_TOKEN with the token you received. Run the commands in the Magento root directory.

composer config repositories.kowal composer https://repo.kowal.storecomposer config http-basic.repo.kowal.store 'TWOJ_EMAIL_KLIENTA' 'TWOJ_TOKEN'composer require kowal/module-paymentrestriction

Complete the installation

After installing the package, update Magento and clear the cache:

php bin/magento setup:upgradephp bin/magento cache:flush

In a production environment, also run DI compilation and static file deployment according to your store deployment process.

Press to skip carousel

We found other products you might like!

Write Your Own Review
You're reviewing: Payment and Shipping Restrictions for Magento 2
Your Rating:
Price
Quality
Support
loader
Loading...

You submitted your review for moderation.

Related Posts

Why the Two-Step Checkout in Magento 2 Is Better Than One Step Checkout

Why the Two-Step Checkout in Magento 2 Is Better Than One Step Checkout

3 min read 6 views
Choosing the right checkout model in Magento 2 significantly impacts both the user experience and your ability to measure where customers drop off. With clearly separated steps, the two-step checkout makes it easier to identify abandonment points and adjust accordingly — whether through improved UX, field arrangement, or payment integration. Unlike single-page solutions, which often blur behavioral patterns, Magento’s default process ensures stability, precision, and long-term scalability for your store.
Read more
Update cookie preferences