Log in
Interface

InfoInterface

Magento\Payment\Model\InfoInterface

What it does

This interface defines the contract for payment information objects in Magento 2.

Developers use it to store, retrieve, and manage sensitive payment data with encryption/decryption capabilities, additional metadata through key-value pairs, and access to the associated payment method instance.

It's commonly implemented by classes that handle payment transaction details during checkout and order processing.

Public Methods

  • encrypt()
  • decrypt()
  • setAdditionalInformation()
  • hasAdditionalInformation()
  • unsAdditionalInformation()
  • getAdditionalInformation()
  • getMethodInstance()