Function iap::get_google_receipt_data [−][src]
pub async fn get_google_receipt_data<S: AsRef<[u8]> + Send>(
receipt: &UnityPurchaseReceipt,
secret: S
) -> Result<GoogleResponse>
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.