Log in
Model

CodeLimitManager

Magento\SalesRule\Model\Coupon\CodeLimitManager

What it does

This class manages rate limiting for coupon code validation requests by integrating with Magento's CAPTCHA system.

Developers use this to prevent automated abuse of coupon code lookups by requiring CAPTCHA verification after multiple failed attempts.

It tracks request attempts per user (guest or logged-in customer) and throws an exception when limits are exceeded without valid CAPTCHA.

Public Methods

  • checkRequest()