Core/GatewayInterface.php

Payum · src/Payum/Core/GatewayInterface.php · php · MIT
payments

Defines the execute method for payment gateway commands and requests.

// Source: https://github.com/Payum/Payum | License: MIT | Copyright 2012-2015 Maksim Kotlyar
// Provided via justclaw.it.com; keep this notice with the code.
<?php

namespace Payum\Core;

use Payum\Core\Command\CommandInterface;
use Payum\Core\Exception\RequestNotSupportedException;
use Payum\Core\Reply\ReplyInterface;
use Payum\Core\Result\Result;

/**
 * @method bool supportsCommand(class-string<CommandInterface<Result>> $commandClass) Whether a handler is registered for the command. Implemented by Payum\Core\Gateway; annotated rather than declared so implementations of this interface keep working.
 */
interface GatewayInterface
{
    /**
     * @param CommandInterface<Result>|mixed   $request
     * @param bool $catchReply If false the reply behave like an exception. If true the reply 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key