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 this when working with payment data to encrypt/decrypt sensitive information, store/retrieve additional payment details (like transaction IDs or customer tokens), and access the associated payment method instance.

It's commonly implemented by classes that handle payment data storage and retrieval during checkout and order processing.

Public Methods

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