Skip to main content

payrail_core/
status.rs

1/// Normalized payment status.
2#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
3#[non_exhaustive]
4pub enum PaymentStatus {
5    /// Created but not started.
6    Created,
7    /// Requires customer or merchant action.
8    RequiresAction,
9    /// Pending provider completion.
10    Pending,
11    /// Processing asynchronously.
12    Processing,
13    /// Authorized but not captured.
14    Authorized,
15    /// Successfully completed.
16    Succeeded,
17    /// Failed.
18    Failed,
19    /// Cancelled.
20    Cancelled,
21    /// Expired.
22    Expired,
23    /// Fully refunded.
24    Refunded,
25    /// Partially refunded.
26    PartiallyRefunded,
27}