Package 

Class PurchaseOptions


  • 
    public final class PurchaseOptions
    
                        

    Options applied to a NativeBillingManager.purchase call.

    SPEC-070-A A.28 — mirrors iOS PurchaseOptions (AppDNA+Modules.swift:454). The appAccountToken is forwarded to Google Play as the obfuscated account ID (BillingFlowParams.setObfuscatedAccountId) so Play can correlate the receipt with the app's user identity for fraud / chargeback investigations.

    • Method Summary

      Modifier and Type Method Description
      final String getOfferToken() Optional offer token to select a specific Play subscription offer / trial.
      final UUID getAppAccountToken() Host-supplied UUID that uniquely identifies the buying user.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PurchaseOptions

        PurchaseOptions(String offerToken, UUID appAccountToken)
    • Method Detail

      • getOfferToken

         final String getOfferToken()

        Optional offer token to select a specific Play subscription offer / trial.

      • getAppAccountToken

         final UUID getAppAccountToken()

        Host-supplied UUID that uniquely identifies the buying user. Forwarded to Play as obfuscatedAccountId. Use the same value you pass on iOS (StoreKit Product.PurchaseOption.appAccountToken) so receipts line up across stores.