PaymentItem
PQSafe AgentPay API Reference v0.1.0
PQSafe AgentPay API Reference / AP2 / PaymentItem
Interface: PaymentItem
Defined in: pqsafe/agent-pay/src/adapters/ap2.ts:53
A payment item within a cart or order.
Mirrors PaymentItem in the W3C Payment Request API and AP2 spec.
Properties
amount
amount:
number
Defined in: pqsafe/agent-pay/src/adapters/ap2.ts:57
Per-unit amount
category?
optionalcategory?:string
Defined in: pqsafe/agent-pay/src/adapters/ap2.ts:65
Optional item category (e.g. “physical”, “digital”, “service”)
currency
currency:
string
Defined in: pqsafe/agent-pay/src/adapters/ap2.ts:59
ISO 4217 currency code
label
label:
string
Defined in: pqsafe/agent-pay/src/adapters/ap2.ts:55
Human-readable item label
metadata?
optionalmetadata?:Record<string,unknown>
Defined in: pqsafe/agent-pay/src/adapters/ap2.ts:67
Optional merchant-specific metadata
quantity?
optionalquantity?:number
Defined in: pqsafe/agent-pay/src/adapters/ap2.ts:61
Optional item quantity (default 1)
sku?
optionalsku?:string
Defined in: pqsafe/agent-pay/src/adapters/ap2.ts:63
Optional SKU or product identifier