Skip to main content

payrail_core/
next_action.rs

1use url::Url;
2
3/// Action the application or payer must take next.
4#[derive(Debug, Clone, PartialEq, Eq)]
5#[non_exhaustive]
6pub enum NextAction {
7    /// Redirect the customer to a hosted provider page.
8    RedirectToUrl { url: Url },
9    /// Ask the customer to complete a Mobile Money prompt.
10    MobileMoneyPrompt { message: String },
11    /// No action is required.
12    None,
13}