payrail-core 0.1.0

Provider-neutral payment abstractions for PayRail
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use url::Url;

/// Action the application or payer must take next.
#[derive(Debug, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum NextAction {
    /// Redirect the customer to a hosted provider page.
    RedirectToUrl { url: Url },
    /// Ask the customer to complete a Mobile Money prompt.
    MobileMoneyPrompt { message: String },
    /// No action is required.
    None,
}