diff --git a/src/Plugin.InAppBilling/InAppBilling.apple.cs b/src/Plugin.InAppBilling/InAppBilling.apple.cs index b6f2767..4465904 100644 --- a/src/Plugin.InAppBilling/InAppBilling.apple.cs +++ b/src/Plugin.InAppBilling/InAppBilling.apple.cs @@ -327,6 +327,7 @@ public async override Task PurchaseAsync(string productId, { TransactionDateUtc = reference.AddSeconds(p.TransactionDate?.SecondsSinceReferenceDate ?? 0), Id = p.TransactionIdentifier, + OriginalTransactionIdentifier = p.OriginalTransaction?.TransactionIdentifier, TransactionIdentifier = p.TransactionIdentifier, ProductId = p.Payment?.ProductIdentifier ?? string.Empty, ProductIds = new string[] { p.Payment?.ProductIdentifier ?? string.Empty }, @@ -790,6 +791,7 @@ public static InAppBillingPurchase ToIABPurchase(this SKPaymentTransaction trans { TransactionDateUtc = NSDateToDateTimeUtc(transaction.TransactionDate), Id = p.TransactionIdentifier, + OriginalTransactionIdentifier = p.OriginalTransaction?.TransactionIdentifier, TransactionIdentifier = p.TransactionIdentifier, ProductId = p.Payment?.ProductIdentifier ?? string.Empty, ProductIds = new string[] { p.Payment?.ProductIdentifier ?? string.Empty }, diff --git a/src/Plugin.InAppBilling/Shared/InAppBillingPurchase.shared.cs b/src/Plugin.InAppBilling/Shared/InAppBillingPurchase.shared.cs index e90b6f4..0a4b2ad 100644 --- a/src/Plugin.InAppBilling/Shared/InAppBillingPurchase.shared.cs +++ b/src/Plugin.InAppBilling/Shared/InAppBillingPurchase.shared.cs @@ -36,6 +36,11 @@ public InAppBillingPurchase() /// public string TransactionIdentifier { get; set; } + /// + /// OriginalTransactionIdentifier - This is the Id/Token of restored transaction from the AppStore + /// + public string OriginalTransactionIdentifier { get; set; } + /// /// Transaction date in UTC ///