32 lines
1,014 B
PHP
32 lines
1,014 B
PHP
<?php
|
|
|
|
namespace App\Lib\Axepta\Enums;
|
|
|
|
use App\Traits\Enums\BaseEnum;
|
|
|
|
enum PaymentResponse: int
|
|
{
|
|
use BaseEnum;
|
|
|
|
case ok = 0;
|
|
case error = 2;
|
|
case fatalerror = 4;
|
|
case transient = 6;
|
|
case emvinfo = 7;
|
|
|
|
/**
|
|
* Optionnal labels definition.
|
|
*
|
|
* @phpcs:disable Generic.Files.LineLength.TooLong
|
|
*
|
|
* @phpstan-ignore-next-line
|
|
*/
|
|
private const LABELS = [
|
|
self::ok->name => 'Transaction successful, other digits may indicate further information',
|
|
self::error->name => 'Transaction failed, other digits may indicate further information',
|
|
self::fatalerror->name => 'Transaction failed, other digits may indicate further information, e.g. mandatory parameter is missing',
|
|
self::transient->name => 'Transaction pending. Final status will be sent asynchronously when available',
|
|
self::emvinfo->name => 'Intermediate states in the EMV 3-D Secure sequence',
|
|
];
|
|
// phpcs:enable
|
|
}
|