Helper
TextSanitiser
Magento\PaymentServicesPaypal\Helper\TextSanitiser
What it does
This helper class sanitizes text input for PayPal payment processing by removing invalid characters while preserving international language support.
Developers use it to clean product descriptions, customer data, and commodity codes before sending them to PayPal's API to prevent validation errors and ensure data compliance with PayPal's requirements.
Public Methods
- textOnly()
- filterCommodityCode()