Skip to content

[in_app_purchase] does not support passing ObfuscatedProfileId to BillingFlowParams #130128

Description

@liangbx361

Is there an existing issue for this?

Use case

It is known that by setting applicationUserName in PurchaseParams, it will eventually be passed to the BillingFlowParams.setObfuscatedAccountId() method. In reality, BillingFlowParams has another method setObfuscatedProfileId() to set developer information, but currently it cannot be passed. It is hoped that the official team can support this setting.

Proposal

final BillingResultWrapper billingResultWrapper =
await billingClientManager.runWithClient(
(BillingClient client) => client.launchBillingFlow(
product: purchaseParam.productDetails.id,
offerToken: offerToken,
accountId: purchaseParam.applicationUserName,
oldProduct: changeSubscriptionParam?.oldPurchaseDetails.productID,
purchaseToken: changeSubscriptionParam
?.oldPurchaseDetails.verificationData.serverVerificationData,
prorationMode: changeSubscriptionParam?.prorationMode),
);
return billingResultWrapper.responseCode == BillingResponse.ok;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterp: in_app_purchasePlugin for in-app purchasepackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions