Log in
Model

CaptchaConfigProvider

Magento\SalesRule\Model\Coupon\CaptchaConfigProvider

What it does

This class provides CAPTCHA configuration data specifically for coupon code requests in the checkout process.

It determines whether CAPTCHA should be displayed based on customer login status and failed attempts, then returns configuration details like image source, dimensions, and refresh URL to the frontend.

Developers would use this when customizing coupon-related CAPTCHA functionality or extending checkout configuration.

Public Methods

  • getConfig()