Log in
Model

SpecificationPlugin

Magento\Paypal\Model\Method\Checks\SpecificationPlugin

What it does

This plugin intercepts payment method availability checks specifically for PayPal Billing Agreements.

It ensures that the Billing Agreement payment method is only shown to logged-in customers who have at least one active billing agreement available, preventing the option from appearing when customers don't have agreements set up.

Public Methods

  • afterIsApplicable()