public static Receipt GetReceipt(string url, string receiptData) { Receipt result = null; string post = PostRequest(url, ConvertReceiptToPost(receiptData)); if (!string.IsNullOrEmpty(post)) { try { result = new Receipt(post); } catch { result = null; } } return result; }
/// <summary> /// Sends the ReceiptData to the Verification Url to be verified. /// </summary> public static bool IsReceiptValid(Receipt receipt) { return (receipt != null && receipt.Status == 0); }
/// <summary> /// Sends the ReceiptData to the Verification Url to be verified. /// </summary> public static bool IsReceiptValid(Receipt receipt) { return(receipt != null && receipt.Status == 0); }