PaymentProcessor

Trait PaymentProcessor 

Source
pub trait PaymentProcessor {
    // Required methods
    fn process_payment(
        &self,
        payment: &PaymentRequest,
    ) -> DeviceResult<PaymentResult>;
    fn refund_payment(
        &self,
        payment_id: &str,
        amount: f64,
    ) -> DeviceResult<RefundResult>;
    fn get_processor_name(&self) -> String;
}
Expand description

Payment processor trait

Required Methods§

Implementors§