public void CompleteTransaction(SKPaymentTransaction transaction) { Console.WriteLine("CompleteTransaction " + transaction.TransactionIdentifier); var productId = transaction.Payment.ProductIdentifier; // Register the purchase, so it is remembered for next time PhotoFilterManager.Purchase(productId); FinishTransaction(transaction, true); }
public void RestoreTransaction(SKPaymentTransaction transaction) { // Restored Transactions always have an 'original transaction' attached Console.WriteLine("RestoreTransaction " + transaction.TransactionIdentifier + "; OriginalTransaction " + transaction.OriginalTransaction.TransactionIdentifier); var productId = transaction.OriginalTransaction.Payment.ProductIdentifier; // Register the purchase, so it is remembered for next time PhotoFilterManager.Purchase(productId); // it's as though it was purchased again FinishTransaction(transaction, true); }
public void CompleteTransaction(SKPaymentTransaction transaction) { Console.WriteLine("CompleteTransaction " + transaction.TransactionIdentifier); var productId = transaction.Payment.ProductIdentifier; // Register the purchase, so it is remembered for next time PhotoFilterManager.Purchase(productId); FinishTransaction(transaction, true); /* * if (ReceiptValidation.VerificationController.SharedInstance.VerifyPurchase (transaction)) { * Console.WriteLine ("Verified!"); * // Register the purchase, so it is remembered for next time * PhotoFilterManager.Purchase(productId); * FinishTransaction (transaction, true); * } else { * Console.WriteLine ("NOT Verified :("); * FinishTransaction (transaction, false); * } */ }
protected override void RestoreTransaction(string productId) { // it's as though it was purchased again PhotoFilterManager.Purchase(productId); }
protected override void CompleteTransaction(string productId) { // Register the purchase, so it is remembered for next time PhotoFilterManager.Purchase(productId); }