Skip to content

Commit

Permalink
Update onetime
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmontemagno committed Nov 27, 2024
1 parent 784d93e commit 18a95c4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Plugin.InAppBilling/InAppBilling.android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,15 @@ public override Task<bool> ConnectAsync(bool enablePendingPurchases = true, Canc
BillingClientBuilder.SetListener(OnPurchasesUpdated);
if (enablePendingPurchases)
{
var pendingParams = PendingPurchasesParams.NewBuilder().EnablePrepaidPlans().Build();
var pendingParams = PendingPurchasesParams.NewBuilder().EnableOneTimeProducts().EnablePrepaidPlans().Build();
BillingClient = BillingClientBuilder.EnablePendingPurchases(pendingParams).Build();
}
else
BillingClient = BillingClientBuilder.Build();

{
var pendingParams = PendingPurchasesParams.NewBuilder().EnableOneTimeProducts().Build();
BillingClient = BillingClientBuilder.EnablePendingPurchases(pendingParams).Build();
}

BillingClient.StartConnection(OnSetupFinished, OnDisconnected);
// TODO: stop trying
Expand Down

0 comments on commit 18a95c4

Please sign in to comment.