UspsUrl
Magento\Usps\Model\Config\Backend\UspsUrl
What it does
This class validates USPS API endpoint URLs when they are saved in the Magento admin configuration.
It ensures that any configured USPS gateway URL points to legitimate USPS domains (usps.com or shippingapis.com) to prevent administrators from accidentally or maliciously configuring invalid endpoints.
Developers would encounter this when implementing or customizing USPS shipping integration settings.
Public Methods
- beforeSave()