pub trait Validator: Send + Sync {
    fn validate<'life0, 'life1, 'async_trait>(
        &'life0 self,
        now: DateTime<Utc>,
        receipt: &'life1 UnityPurchaseReceipt
    ) -> Pin<Box<dyn Future<Output = Result<PurchaseResponse>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }
Expand description

The base trait for implementing a validator. Mock Validators can be made for running local tests by implementing this trait.

Required methods

Called to perform the validation on whichever platform is described in the provided UnityPurchaseReceipt.

Implementors