Result class representing capture operation outcomes in Payum payment library.
// 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\Result;
use Money\Money;
use Payum\Core\Money\Amount;
/**
* The outcome of a {@see \Payum\Core\Command\CaptureCommand}.
*
* Remember that capture is re-entrant: the first call on a redirect gateway returns pending() with a
* Redirect, and the second call -- after the customer returns to the same capture URL -- returns
* captured(). Both are this type.
*/
final class CaptureResult extends Result
{
/**
* In minor units. The lossy view of {@see self::$capturedMoney}, and null whenever that is.
*/
public readonly ?int $capturedAmount;
/**
* Set only
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key