PaymentRequest
PQSafe AgentPay API Reference v0.1.0
PQSafe AgentPay API Reference / AP2 / PaymentRequest
Interface: PaymentRequest
Defined in: pqsafe/agent-pay/src/adapters/ap2.ts:224
PaymentRequest — structure sent from merchant to agent during checkout. Mirrors the W3C Payment Request API surface used by AP2.
Properties
details
details:
object
Defined in: pqsafe/agent-pay/src/adapters/ap2.ts:232
Order details
displayItems?
optionaldisplayItems?:PaymentItem[]
Itemized line items (optional)
label
label:
string
Human-readable order description
shippingOptions?
optionalshippingOptions?:object[]
Shipping options (optional)
total
total:
PaymentItem
Final total to be charged
expiresAt?
optionalexpiresAt?:string
Defined in: pqsafe/agent-pay/src/adapters/ap2.ts:251
ISO 8601 expiry for the payment request
merchantId
merchantId:
string
Defined in: pqsafe/agent-pay/src/adapters/ap2.ts:228
Merchant identifier
methodData
methodData:
PaymentMethodData[]
Defined in: pqsafe/agent-pay/src/adapters/ap2.ts:230
Merchant-accepted payment methods
requestId
requestId:
string
Defined in: pqsafe/agent-pay/src/adapters/ap2.ts:226
Unique request ID
requestShipping?
optionalrequestShipping?:boolean
Defined in: pqsafe/agent-pay/src/adapters/ap2.ts:249
Optional shipping address request