Example #1
0
        private void onProductStateDeferred(string productIdentifier)
        {
            PurchaseResult response = new PurchaseResult(productIdentifier, PurchaseState.Deferred);


            OnTransactionComplete(response);
        }
Example #2
0
        private void FireProductBoughtEvent(string productIdentifier, string applicationUsername, string receipt, string transactionIdentifier, bool IsRestored)
        {
            PurchaseState state;

            if (IsRestored)
            {
                state = PurchaseState.Restored;
            }
            else
            {
                state = PurchaseState.Purchased;
            }

            PurchaseResult response = new PurchaseResult(productIdentifier, state, applicationUsername, receipt, transactionIdentifier);



            lastPurchasedProduct = response.ProductIdentifier;
            OnTransactionComplete(response);
        }
Example #3
0
        private void SendTransactionFailEvent(string productIdentifier, SA.Common.Models.Error error)
        {
            PurchaseResult response = new PurchaseResult(productIdentifier, error);

            OnTransactionComplete(response);
        }