interface AP2PaymentResponse

APPLICATION-SPECIFIC DATA: A structure representing an AP2 payment response.

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

Properties

readonly
requestId: string

The unique ID from the original PaymentRequest.

readonly
methodName: string

The payment method chosen by the user.

readonly
optional
details: Record<string, unknown>

A dictionary generated by a payment method to process a transaction.

The shipping address provided by the user.

The shipping option selected by the user.

readonly
optional
payerName: string

The payer's name.

readonly
optional
payerEmail: string

The payer's email address.

readonly
optional
payerPhone: string

The payer's phone number.

Usage

import { type AP2PaymentResponse } from ".";