dotnet / dotnet/maui-samples

BillingService Android PurchasePlatformProductAsync Does Not Work

Open
#732 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
C#
Stars
3.7k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

Attempting to buy something always fails calling PurchasePlatformProductAsync.

Internally QueryProductDetailsAsync always returns "DEVELOPER ERROR: Invalid SKU type: InApp" because `.SetProductType("InApp")` is used to compose the `QueryproductDetails` parameter. The fix is to use `.SetProductType(BillingClient.ProductType.Inapp)` instead - it actually evaluates to "inapp" which the Android Play API recognizes.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.