From c4f1677ce0d9c2236f551199f2f722ce97f2d4c6 Mon Sep 17 00:00:00 2001 From: Mike Goodfellow Date: Sat, 19 Jan 2019 09:40:12 +0000 Subject: [PATCH] FIXED: Always call OnPurchaseSuccess if defined for out of band purchases --- src/Plugin.InAppBilling.iOS/InAppBillingImplementation.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Plugin.InAppBilling.iOS/InAppBillingImplementation.cs b/src/Plugin.InAppBilling.iOS/InAppBillingImplementation.cs index 60fe6f6..c937dc5 100644 --- a/src/Plugin.InAppBilling.iOS/InAppBillingImplementation.cs +++ b/src/Plugin.InAppBilling.iOS/InAppBillingImplementation.cs @@ -446,8 +446,7 @@ public override void UpdatedTransactions(SKPaymentQueue queue, SKPaymentTransact case SKPaymentTransactionState.Purchased: TransactionCompleted?.Invoke(transaction, true); - if (TransactionCompleted != null) - onPurchaseSuccess?.Invoke(transaction.ToIABPurchase()); + onPurchaseSuccess?.Invoke(transaction.ToIABPurchase()); SKPaymentQueue.DefaultQueue.FinishTransaction(transaction); break;