Skip to main content

PaymentExecutionService

Trait PaymentExecutionService 

Source
pub trait PaymentExecutionService: Send + Sync {
    // Required methods
    fn execute_payment<'life0, 'async_trait>(
        &'life0 self,
        command: ExecutePaymentCommand,
    ) -> Pin<Box<dyn Future<Output = Result<PaymentExecutionResult, AdkError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn sync_payment_outcome<'life0, 'async_trait>(
        &'life0 self,
        command: SyncPaymentOutcomeCommand,
    ) -> Pin<Box<dyn Future<Output = Result<TransactionRecord, AdkError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
}
Available on crate feature payments only.
Expand description

Backend-facing payment execution operations shared by ACP and AP2 adapters.

Required Methods§

Source

fn execute_payment<'life0, 'async_trait>( &'life0 self, command: ExecutePaymentCommand, ) -> Pin<Box<dyn Future<Output = Result<PaymentExecutionResult, AdkError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Source

fn sync_payment_outcome<'life0, 'async_trait>( &'life0 self, command: SyncPaymentOutcomeCommand, ) -> Pin<Box<dyn Future<Output = Result<TransactionRecord, AdkError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Implementors§