コード例 #1
0
		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;
		}
コード例 #2
0
		/// <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(Receipt receipt)
		{
			return (receipt != null && receipt.Status == 0);
		}
コード例 #3
0
 /// <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(Receipt receipt)
 {
     return(receipt != null && receipt.Status == 0);
 }