diff --git a/src/Plugin.InAppBilling/InAppBilling.apple.cs b/src/Plugin.InAppBilling/InAppBilling.apple.cs index 24318db..af41e98 100644 --- a/src/Plugin.InAppBilling/InAppBilling.apple.cs +++ b/src/Plugin.InAppBilling/InAppBilling.apple.cs @@ -400,15 +400,19 @@ public void RequestFailed(SKRequest request, NSError error) => public void ReceivedResponse(SKProductsRequest request, SKProductsResponse response) { - var product = response.Products; + var invalidProduct = response.InvalidProducts; + if (invalidProduct?.Any() ?? false) + { + tcsResponse.TrySetException(new InAppBillingPurchaseException(PurchaseError.InvalidProduct, $"Invalid Product: {invalidProduct.First()}")); + return; + } + var product = response.Products; if (product != null) { tcsResponse.TrySetResult(product); return; } - - tcsResponse.TrySetException(new InAppBillingPurchaseException(PurchaseError.InvalidProduct, "Invalid Product")); } }