Trait iap::ReceiptDataFetcher
source · [−]pub trait ReceiptDataFetcher {
fn fetch_apple_receipt_data<'life0, 'life1, 'async_trait>(
&'life0 self,
receipt: &'life1 UnityPurchaseReceipt
) -> Pin<Box<dyn Future<Output = Result<AppleResponse>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn fetch_google_receipt_data<'life0, 'life1, 'async_trait>(
&'life0 self,
receipt: &'life1 UnityPurchaseReceipt
) -> Pin<Box<dyn Future<Output = Result<(GoogleResponse, SkuType)>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}
Expand description
Trait which allows us to retrieve receipt data from an object’s own secrets.
Required methods
fn fetch_apple_receipt_data<'life0, 'life1, 'async_trait>(
&'life0 self,
receipt: &'life1 UnityPurchaseReceipt
) -> Pin<Box<dyn Future<Output = Result<AppleResponse>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn fetch_apple_receipt_data<'life0, 'life1, 'async_trait>(
&'life0 self,
receipt: &'life1 UnityPurchaseReceipt
) -> Pin<Box<dyn Future<Output = Result<AppleResponse>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Similar to the helper function crate::fetch_apple_receipt_data
, an associated function for pulling the response from owned secrets. x
fn fetch_google_receipt_data<'life0, 'life1, 'async_trait>(
&'life0 self,
receipt: &'life1 UnityPurchaseReceipt
) -> Pin<Box<dyn Future<Output = Result<(GoogleResponse, SkuType)>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn fetch_google_receipt_data<'life0, 'life1, 'async_trait>(
&'life0 self,
receipt: &'life1 UnityPurchaseReceipt
) -> Pin<Box<dyn Future<Output = Result<(GoogleResponse, SkuType)>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Similar to the helper function crate::fetch_google_receipt_data
, an associated function for pulling the response from owned secrets.