mtnmomo 0.1.9

MTN Momo Payment API for Rust, with support for both the Sandbox and Production environments. All products are supported: Collections, Disbursements and Remittances.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde::{Deserialize, Serialize};

/// This is the status of the pre-approval.
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "UPPERCASE")]
pub enum PreApprovalStatus {
    /// The pre-approval is pending.
    PENDING,
    /// The pre-approval is successful.
    SUCCESSFUL,
    /// The pre-approval has failed.
    FAILED,
    /// The pre-approval has been created.
    CREATED,
}