Log in
Interface

GatewayInterface

Magento\Payment\Model\Method\Online\GatewayInterface

What it does

This interface defines the contract for online payment gateway integrations in Magento 2.

Developers implement this interface when creating custom payment methods that need to communicate with external payment gateways by posting requests and receiving responses.

It standardizes how payment data is transmitted to third-party payment processors.

Public Methods

  • postRequest()