Log in
Interface

SaleOperationInterface

Magento\Payment\Model\SaleOperationInterface

What it does

This interface defines the contract for payment methods that support a 'sale' operation, which combines authorization and capture into a single transaction.

Developers implementing custom payment methods should use this interface when their payment gateway supports direct sale transactions, allowing immediate fund capture during checkout rather than a separate authorization and capture flow.

Public Methods

  • canSale()
  • sale()