Skip to content

Commit ba6186e

Browse files
Merge pull request #28 from flowwow/FB-1677
FB-1677 Add transaction statuses
2 parents 481bc54 + a054950 commit ba6186e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/Enum/TransactionStatus.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
namespace Flowwow\Cloudpayments\Enum;
4+
5+
use MyCLabs\Enum\Enum;
6+
7+
/**
8+
* Статус транзакции
9+
*
10+
* @see https://developers.cloudpayments.ru/#statusy-operatsiy
11+
*/
12+
class TransactionStatus extends Enum
13+
{
14+
public const STATUS_COMPLETED = 'Completed';
15+
public const STATUS_AUTHORIZED = 'Authorized';
16+
public const STATUS_AWAITING_AUTHORIZED = 'AwaitingAuthentication';
17+
public const STATUS_CANCELLED = 'Cancelled';
18+
public const STATUS_DECLINED = 'Declined';
19+
public const STATUS_CREATED = 'Created';
20+
public const STATUS_PENDING = 'Pending';
21+
}

0 commit comments

Comments
 (0)