Android showBillingProgramInformationDialogAndroid
Shows Google's billing program information dialog for Billing Choice. Available in OpenIAP Spec 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
): BillingResultAndroidParameters#
Pass one BillingProgramInformationDialogParamsAndroid:
billingProgram(optional,BillingProgramAndroid) - defaults to'billing-choice'.externalTransactionToken(required,string) - token fromcreateBillingProgramReportingDetailsAndroid().
Returns#
Promise<BillingResultAndroid> with responseCode, optional debugMessage, and optional subResponseCode.
Example
kt
val result = openIapStore.showBillingProgramInformationDialog(
activity,
BillingProgramInformationDialogParamsAndroid(
billingProgram = BillingProgramAndroid.BillingChoice,
externalTransactionToken = reportingDetails.externalTransactionToken
)
)