interface AP2PaymentRequest

APPLICATION-SPECIFIC DATA: A structure representing a complete AP2 payment request.

This is a custom interface for your application's logic. It uses the global browser types where possible (e.g., PaymentMethodData, PaymentOptions).

Properties

readonly
id: string

The unique ID for this payment request.

readonly
methodData: readonly PaymentMethodData[]

A list of supported payment methods.

The financial details of the transaction, using our extended details type.

readonly
optional
options: PaymentOptions

Optional configuration for the payment request.

The user's provided shipping address.

Usage

import { type AP2PaymentRequest } from ".";