Data to attach to a transaction.

interface AdditionalData {
    appStore?: CdvPurchase.AppleAppStore.AdditionalData;
    applicationUsername?: string;
    braintree?: CdvPurchase.Braintree.AdditionalData;
    googlePlay?: CdvPurchase.GooglePlay.AdditionalData;
    quantity?: number;
}

Properties

Apple AppStore specific additional data

applicationUsername?: string

The application's user identifier.

Deprecated

Set Store.applicationUsername instead. The per-transaction value is ignored — adapters always read the store-level username so receipt validation later (which doesn't have access to the original additionalData) sees the same value that was sent to the native API at purchase time. Passing this field logs a one-shot notice.

Braintree specific additional data

GooglePlay specific additional data

quantity?: number

Quantity of items to purchase.

Only supported on platforms that report the 'orderQuantity' capability. Platforms without support will ignore this field.