PluginProbe
Booktics – Appointment Booking Calendar for Service Businesses / 1.0.21
Booktics – Appointment Booking Calendar for Service Businesses v1.0.21
1.0.25 1.0.24 1.0.23 1.0.22 1.0.21 1.0.20 1.0.19 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 All 27 releases
booktics / core / payment / payment-status.php

payment-status.php in Booktics – Appointment Booking Calendar for Service Businesses 1.0.21, at core/payment/payment-status.php

32 lines 782 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Booktics\Payment;
4
5 /**
6 * Class representing various payment statuses.
7 *
8 * This class defines constants for different stages of payment processing,
9 * providing a structured way to handle payment state within the application.
10 */
11 final class Payment_Status {
12
13 public const PENDING = 'pending';
14 public const PROCESSING = 'processing';
15 public const COMPLETED = 'fully_paid';
16 public const FAILED = 'not_paid';
17 public const CANCELLED = 'cancelled';
18 public const REFUNDED = 'refunded';
19 public const PARTIALLY_PAID = 'partially_paid';
20
21 /**
22 * Get all payment statuses.
23 *
24 * @return array
25 */
26 public static function get_statuses(): array {
27 $reflection = new \ReflectionClass( self::class );
28
29 return $reflection->getConstants();
30 }
31 }
32