public static IOSReceipt GetReceipt(string url, string receiptData)
        {
            IOSReceipt result = null;

            string post = PostRequest(url, ConvertReceiptToPost(receiptData));

            if (!string.IsNullOrEmpty(post))
            {
                try { result = new IOSReceipt(post); }
                catch (Exception ex)
                {
                    result = null;
                    throw ex;
                }
            }

            return(result);
        }
 /// <summary>
 /// Sends the ReceiptData to the Verification Url to be verified.
 /// </summary>
 /// <returns>If true, the Receipt Verification Server indicates a valid transaction response</returns>
 public static bool IsReceiptValid(IOSReceipt receipt)
 {
     return(receipt != null && receipt.Status == 0);
 }