use flowglad::{Client, Config};
use once_cell::sync::Lazy;
pub static TEST_CLIENT: Lazy<Client> = Lazy::new(|| {
let config = Config::new("sk_test_2UpNCeGvC1EuiJASnW2Z2i4Wot7N3goNdogBU4rLFnPqnp");
Client::new(config).expect("Failed to create test client")
});
pub fn unique_email(prefix: &str) -> String {
use std::time::{SystemTime, UNIX_EPOCH};
let timestamp = SystemTime::now()
.duration_since(UNIX_EPOCH)
.unwrap()
.as_secs();
format!("{}+{}@flowglad-test.com", prefix, timestamp)
}
pub fn unique_name(prefix: &str) -> String {
use std::time::{SystemTime, UNIX_EPOCH};
let timestamp = SystemTime::now()
.duration_since(UNIX_EPOCH)
.unwrap()
.as_secs();
format!("{} {}", prefix, timestamp)
}