Skip to content

Subscription with the BillingService #730

@erossini

Description

@erossini

Hi,
I like to use the implementation for the BillingService. I have a question about the Android implementation.

When the procedure reads the BillingClient.ProductType.Inapp, the list of products from the store is fine. In the Google Play Console, to define a subscription, there are 2 steps. In the first one, I define the name and Id of the subscription.

Image

And then, I can define one or more plans.

Image

When the query is built in the function GetPlatformProductsAsync for BillingService.Android.cs, I changed it like this code:

foreach (var product in baseProducts)
{
    var queryProduct = QueryProductDetailsParams.Product.NewBuilder()
        .SetProductId(product.Id)
        .SetProductType(BillingClient.ProductType.Subs)
        .Build();

    productList.Add(queryProduct);
}

The query find the main subscription (liuannual1) but not the plans (base1 and base12). How do I have to refer to them in order to find them?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions