A robust command object for processing full or partial payment refunds, providing a standardized interface for payment gateway integrations.
// 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 declare(strict_types=1); namespace Payum\Core\Command; use Money\Currency; use Money\Money; use Payum\Core\Exception\LogicException; use Payum\Core\Gateway\Capability; use Payum\Core\Model\PaymentInterface; use Payum\Core\Model\SubjectInterface; use Payum\Core\Money\Amount; use Payum\Core\Result\RefundResult; use Payum\Core\Security\TokenInterface; /** * Give the money back. * * Usually a single dispatch with no customer interaction, which is what makes it the useful contrast to * capture: the same handler shape covers both, and only the gateway decides whether a NextAction is * needed. * * @implements CommandInterfa ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key