Get Status


use Payum\Core\GatewayInterface;
use Payum\Core\Model\Payment;
use Payum\Core\Request\GetHumanStatus;

/** @var array|\ArrayObject|Payment $model */

/** @var GatewayInterface $gateway */
$gateway->execute($status = new GetHumanStatus($model));


$status->getValue(); // 'new', 'authorized', 'captured' and so on.

Back to examples

Supporting Payum

Payum is an MIT-licensed open source project with its ongoing development made possible entirely by the support of community and our customers. If you'd like to join them, please consider:

Last updated