Model/StatusAwareInterface.php

Payum · src/Payum/Core/Model/StatusAwareInterface.php · php · MIT
payments, tag:knn-classified

Interface for models to expose and update payment status.

// 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\Model;

use Payum\Core\Result\PaymentStatus;

/**
 * Opt in to have Payum keep the subject's status current.
 *
 * A subject that implements this has its status written after every command that concludes something
 * about it, which makes the status readable without asking a gateway and queryable in whatever the model
 * is stored in. One that does not implement it has no status tracked at all.
 *
 * Implemented by whatever a command operates on, so a payout tracks its status the same way a payment
 * does -- reaching PaymentStatus::PaidOut rather than PaymentStatus::Captured.
 *


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

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

Get a free API key