diff --git a/global.json b/global.json
new file mode 100644
index 0000000..517ffee
--- /dev/null
+++ b/global.json
@@ -0,0 +1,7 @@
+{
+ "sdk": {
+ "version": "8.0.400",
+ "rollForward": "latestFeature",
+ "allowPrerelease": true
+ }
+}
\ No newline at end of file
diff --git a/src/Plugin.InAppBilling/InAppBilling.android.cs b/src/Plugin.InAppBilling/InAppBilling.android.cs
index 239dba3..fa3a2c9 100644
--- a/src/Plugin.InAppBilling/InAppBilling.android.cs
+++ b/src/Plugin.InAppBilling/InAppBilling.android.cs
@@ -133,7 +133,6 @@ public override Task DisconnectAsync(CancellationToken cancellationToken)
return Task.CompletedTask;
}
-
///
/// Gets or sets if in testing mode. Only for UWP
///
@@ -483,6 +482,7 @@ static bool ParseBillingResult(BillingResult result, bool ignoreInvalidProducts
return result.ResponseCode switch
{
BillingResponseCode.Ok => true,
+ BillingResponseCode.NetworkError => throw new InAppBillingPurchaseException(PurchaseError.NetworkError),
BillingResponseCode.UserCancelled => throw new InAppBillingPurchaseException(PurchaseError.UserCancelled),//User Cancelled, should try again
BillingResponseCode.ServiceUnavailable => throw new InAppBillingPurchaseException(PurchaseError.ServiceUnavailable),//Network connection is down
BillingResponseCode.ServiceDisconnected => throw new InAppBillingPurchaseException(PurchaseError.ServiceDisconnected),//Network connection is down
diff --git a/src/Plugin.InAppBilling/Plugin.InAppBilling.csproj b/src/Plugin.InAppBilling/Plugin.InAppBilling.csproj
index 7d6de8d..24fbdb5 100644
--- a/src/Plugin.InAppBilling/Plugin.InAppBilling.csproj
+++ b/src/Plugin.InAppBilling/Plugin.InAppBilling.csproj
@@ -9,9 +9,9 @@
Plugin.InAppBilling
Plugin.InAppBilling
$(AssemblyName) ($(TargetFramework))
- 7.0.0.0
- 7.0.0.0
- 7.0.0.0
+ 9.0.0.0
+ 9.0.0.0
+ 9.0.0.0
James Montemagno
True
Plugin.InAppBilling
@@ -95,33 +95,33 @@
-
+
- 1.9.0.4
+ 1.9.2.1
- 1.9.0.4
+ 1.9.2.1
- 1.4.0.6
+ 1.4.3.1
- 1.4.0.5
+ 1.4.3.1
- 2.8.3.1
+ 2.8.5.1
- 2.8.3.1
+ 2.8.5.1
- 2.8.3.1
+ 2.8.5.1
- 2.8.3.1
+ 2.8.5.1
- 2.8.3.1
+ 2.8.5.1
diff --git a/src/Plugin.InAppBilling/Shared/InAppBillingExceptions.shared.cs b/src/Plugin.InAppBilling/Shared/InAppBillingExceptions.shared.cs
index 39ce8c3..66123f8 100644
--- a/src/Plugin.InAppBilling/Shared/InAppBillingExceptions.shared.cs
+++ b/src/Plugin.InAppBilling/Shared/InAppBillingExceptions.shared.cs
@@ -70,8 +70,9 @@ public enum PurchaseError
FeatureNotSupported,
ServiceDisconnected,
ServiceTimeout,
- AppleTermsConditionsChanged
- }
+ AppleTermsConditionsChanged,
+ NetworkError
+ }
///
/// Purchase exception