react-native-firework-sdk
    Preparing search index...

    Interface PurchaseProduct

    interface PurchaseProduct {
        extProductId?: string;
        price: number;
        productName?: string;
        quantity: number;
        sku?: string;
    }
    Index

    Properties

    extProductId?: string

    The external product ID.

    Kept for backward compatibility. When sku is not provided, this value is sent as the sku of the corresponding line_items entry. At least one of sku or extProductId is required.

    price: number

    The unit price of the product, including line-level discounts.

    productName?: string

    The product variant or unit name.

    quantity: number

    The quantity purchased.

    sku?: string

    The SKU (SKU/barcode/GTIN/MPN or external id).

    When present it takes precedence over extProductId on the wire.