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 HostedProductManager.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 HostedProductManager.Purchase(productId); // it's as though it was purchased again FinishTransaction(transaction, true); }
protected override void RestoreTransaction(string productId) { HostedProductManager.Purchase(productId); // it's as though it was purchased again }
protected override void CompleteTransaction(string productId) { // Register the purchase, so it is remembered for next time HostedProductManager.Purchase(productId); }