How is the setIsSecureMode() magic method used for a payment information block?

Place 1. Magento\Payment\Helper\Data::getInfoBlockHtml()

It is used only for the transactional emails.

Place 2. \Magento\Sales\Model\Order\Pdf\AbstractPdf::insertOrder()

See also: