Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

846 B
Raw Blame
pub mod amount;
pub mod apply;
pub mod browse;
pub mod client;
pub mod config;
pub mod connectivity;
pub mod eligibility;
#[cfg(feature = "v1")]
pub mod notify;
pub mod types;
#[cfg(feature = "v1")]
pub mod velocity;

pub use client::OfferEngineClient;
pub use config::resolve_offer_engine_credential_source;

#[derive(Debug, Clone, Copy, PartialEq, Eq, strum::EnumString)]
#[strum(serialize_all = "SCREAMING_SNAKE_CASE")]
pub enum SupportedPaymentMethodType {
    Card,
}

pub fn is_supported_payment_method_type(payment_method_type: &str) -> bool {
    payment_method_type
        .parse::<SupportedPaymentMethodType>()
        .is_ok()
}
#[cfg(feature = "v1")]
pub use notify::{schedule_payment_notification_for_attempt, schedule_refund_notification};
pub use types::{OfferEngineCredentialSource, OfferEngineError, ResolvedOfferEngineConfig};