Log in
Interface

OrderPaymentResourceInterface

Magento\Sales\Model\Spi\OrderPaymentResourceInterface

What it does

This interface defines the contract for managing persistence operations (save, load, delete) of order payment data in Magento 2.

Developers would implement this interface when creating custom resource models for order payment entities or when extending payment processing functionality.

It serves as a Service Provider Interface (SPI) that ensures consistent database operations for payment records.

Public Methods

  • save()
  • load()
  • delete()