Function iap::fetch_google_receipt_data
source · [−]pub async fn fetch_google_receipt_data<S: AsRef<[u8]> + Send>(
receipt: &UnityPurchaseReceipt,
secret: S
) -> Result<GoogleResponse>
Expand description
Retrieves the response body from google
Errors
Will return an error if authentication fails, if there is no response from the endpoint, or if the payload
in the UnityPurchaseReceipt
is malformed.