Item being purchased with requestPayment

The format is such as it's compatible with Product. This way, normal products can be added to the payment request.

interface PaymentRequestItem {
    id: string;
    pricing?: {
        currency?: string;
        priceMicros: number;
    };
    title: string;
}

Properties

Properties

id: string

Identifier

pricing?: {
    currency?: string;
    priceMicros: number;
}

Item pricing information.

It can be undefined if a single product is purchased. If that case, it's assumed the price is equal to the total amount requested.

Type declaration

  • Optional currency?: string

    Currency, for verification, if set it should be equal to the PaymentRequest currency

  • priceMicros: number

    Price in micro units (i.e. price * 1,000,000)

title: string

Label for the item