1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//! # Paystack Transaction
//!
//! A Simple to use package to use Paystack with Rust
//! 
//! # Usage
//! ```rust
//! #[tokio::main]
//! async fn main() {
//!     let key = cred_from_env("SECRET_KEY".to_string()).unwrap();
//! 
//!     let mut builder = Payment::builder(
//!         "test@example.com".to_string(),
//!         100.0,
//!         key,
//!     );

//!     builder.channel(Channel::Card);
//!     builder.label("label".to_string());
//!     builder.reference("reference".to_string());

//!     builder.build().send().await.unwrap();
//! }
//! ```

mod accept_payment;
mod cred;
mod error;

pub use cred::{cred_from_env, expose_secret};

pub use accept_payment::{Channel, Currency, Payment, MobileMoneyInfo, PaymentBuilder};

pub use error::{AuthError, ResponseError};