Use this page with AI

Copy this into your coding assistant and add your request.

Read https://openiap.dev/docs/apis/android/show-billing-program-information-dialog-android and https://openiap.dev/llms.txt. Follow the reading instructions, detailed reference, and linked guides relevant to my task before making changes.
Inspect my existing project and reuse its framework and conventions. Ask me for missing product decisions. Implement the requested behavior and run the applicable checks.
Show the working result, the commands and actual test results, and any remaining limitations. Keep your explanation brief.

My request: [describe what customers should be able to do]
See an example request →

Android showBillingProgramInformationDialogAndroid

Shows Google's billing program information dialog for Billing Choice. Available in OpenIAP 2.1.0 and openiap-google 2.3.0; requires Play Billing 9.1.0+.

Wraps BillingClient.showBillingProgramInformationDialog(...). For a developer-rendered, in-app flow, call this after creating an IN_APP reporting token and before showing your choice screen. Google-rendered and external-link flows do not use this step.

Signature

kt
suspend fun showBillingProgramInformationDialog(
    activity: Activity,
    params: BillingProgramInformationDialogParamsAndroid
): BillingResultAndroid

Parameters#

Pass one BillingProgramInformationDialogParamsAndroid:

Returns#

Promise<BillingResultAndroid> with responseCode, optional debugMessage, and optional subResponseCode.

Example

kt
val result = openIapStore.showBillingProgramInformationDialog(
    activity,
    BillingProgramInformationDialogParamsAndroid(
        billingProgram = BillingProgramAndroid.BillingChoice,
        externalTransactionToken = reportingDetails.externalTransactionToken
    )
)