Skip to content

Commit

Permalink
Merge branch 'androidv7billing' of https://github.com/jamesmontemagno…
Browse files Browse the repository at this point in the history
…/inappbillingplugin into androidv7billing
  • Loading branch information
jamesmontemagno committed Nov 27, 2024
2 parents 18a95c4 + e4ddf1b commit 9af69c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
14 changes: 2 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,10 @@ If you receive an error in Google Play you may need to add this to your AndroidM
```xml
<meta-data
android:name="com.google.android.play.billingclient.version"
android:value="6.1.0" />
android:value="X.X.X" />
```

If you are building against .NET 8 for Android you will need to add the following packages when using v7:

```xml
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0-android'">
<PackageReference Include="Xamarin.AndroidX.Activity" Version="1.9.0.3" /> <!-- Temporary workaround, see: https://github.com/xamarin/AndroidX/issues/764 -->
<PackageReference Include="Xamarin.AndroidX.Activity.Ktx" Version="1.9.0.3" /> <!-- Temporary workaround, see: https://github.com/xamarin/AndroidX/issues/764 -->
<PackageReference Include="Xamarin.AndroidX.Collection" Version="1.4.0.5" /> <!-- Temporary workaround, see: https://github.com/xamarin/AndroidX/issues/800 -->
<PackageReference Include="Xamarin.AndroidX.Collection.Ktx" Version="1.4.0.4" /> <!-- Temporary workaround, see: https://github.com/xamarin/AndroidX/issues/800 -->
<PackageReference Include="Xamarin.GooglePlayServices.Base" Version="118.4.0" />
</ItemGroup>
```
Update X.X.X with the version of the Billing Library that is a dependency on the NuGet package.

### Pending Transactions:
* If the result of PurchaseAsync is PurchaseState.PaymentPending, store the order details locally and inform the user that they will have access to the product when the payment completes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ public class InAppBillingPurchaseException : Exception
/// </summary>
/// <param name="error"></param>
/// <param name="ex"></param>
public InAppBillingPurchaseException(PurchaseError error, Exception ex) : base("Unable to process purchase.", ex) => PurchaseError = error;
public InAppBillingPurchaseException(PurchaseError error, Exception ex) : base($"Unable to process purchase : {error:G}.", ex) => PurchaseError = error;
/// <summary>
///
/// </summary>
/// <param name="error"></param>
public InAppBillingPurchaseException(PurchaseError error) : base("Unable to process purchase.") => PurchaseError = error;
public InAppBillingPurchaseException(PurchaseError error) : base($"Unable to process purchase : {error:G}.") => PurchaseError = error;

/// <summary>
///
Expand Down

0 comments on commit 9af69c1

Please sign in to comment.