1 | <?php |
||
12 | abstract class Intent |
||
13 | { |
||
14 | const STATUS_REQUIRES_PAYMENT_METHOD = 'requires_payment_method'; |
||
15 | const STATUS_REQUIRES_CONFIRMATION = 'requires_confirmation'; |
||
16 | const STATUS_REQUIRES_ACTION = 'requires_action'; |
||
17 | const STATUS_PROCESSING = 'processing'; |
||
18 | const STATUS_REQUIRES_CAPTURE = 'requires_capture'; |
||
19 | const STATUS_CANCELED = 'canceled'; |
||
20 | const STATUS_SUCCEEDED = 'succeeded'; |
||
21 | |||
22 | /** |
||
23 | * @var ?IntentNextAction |
||
24 | */ |
||
25 | protected $nextAction; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $status; |
||
31 | |||
32 | public function requiresAction(): bool |
||
36 | |||
37 | public function requiresPaymentMethod(): bool |
||
41 | |||
42 | public function isSucceeded() |
||
46 | |||
47 | 2 | public function getNextAction(): ?IntentNextAction |
|
51 | |||
52 | 2 | public function getStatus(): string |
|
56 | } |
||
57 |