Skip to content

Commit

Permalink
Make the default firstSub one that isn't a trial
Browse files Browse the repository at this point in the history
Fixes #559
  • Loading branch information
jamesmontemagno committed Oct 3, 2023
1 parent f462de5 commit ee75a11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plugin.InAppBilling/Converters.android.cs
Expand Up @@ -75,7 +75,7 @@ internal static InAppBillingProduct ToIAPProduct(this ProductDetails product)
}).ToList()
}).ToList();

var firstSub = subs?.FirstOrDefault()?.PricingPhases?.FirstOrDefault();
var firstSub = subs?.FirstOrDefault()?.PricingPhases.Where(p => p.PriceAmountMicros != 0)?.FirstOrDefault();

return new InAppBillingProduct
{
Expand Down

0 comments on commit ee75a11

Please sign in to comment.