Skip to content

Commit

Permalink
Fixes #513
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmontemagno authored Jun 4, 2023
1 parent 015de27 commit cf7cc36
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Plugin.InAppBilling/InAppBilling.android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,9 @@ public async override Task<InAppBillingPurchase> PurchaseAsync(string productId,
{
return null;
}

if(!string.IsNullOrWhiteSpace(obfuscatedProfileId) && string.IsNullOrWhiteSpace(obfuscatedAccountId))
throw new ArgumentNullException("You must set an account id if you are setting a profile id");

switch (itemType)
{
Expand Down

0 comments on commit cf7cc36

Please sign in to comment.