Exemple #1
0
        public async Task <Tuple <string, Guid?> > GetReceiptAsync(string originalTransactionId)
        {
            var receipt = await _metaDataRespository.GetAsync("AppleReceipt", originalTransactionId);

            if (receipt == null)
            {
                return(null);
            }
            return(new Tuple <string, Guid?>(receipt.ContainsKey("Data") ? receipt["Data"] : null,
                                             receipt.ContainsKey("UserId") ? new Guid(receipt["UserId"]) : (Guid?)null));
        }