OMPX JavaScript SDK
Preparing search index...
@ompx/core
PaymentRequirements
Interface PaymentRequirements
Unified payment requirements extracted from a 402 response
interface
PaymentRequirements
{
amount
:
Money
;
description
?:
string
;
expiresAt
?:
Date
;
mpp
?:
MPPChallenge
[]
;
protocol
:
Protocol
;
recipient
:
string
;
resource
?:
string
;
x402
?:
X402PaymentRequired
;
}
Index
Properties
amount
description?
expires
At?
mpp?
protocol
recipient
resource?
x402?
Properties
amount
amount
:
Money
Optional
description
description
?:
string
Optional
expires
At
expiresAt
?:
Date
Optional
mpp
mpp
?:
MPPChallenge
[]
protocol
protocol
:
Protocol
recipient
recipient
:
string
Optional
resource
resource
?:
string
Optional
x402
x402
?:
X402PaymentRequired
Original protocol-specific data
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
amount
description
expires
At
mpp
protocol
recipient
resource
x402
OMPX JavaScript SDK
Loading...
Unified payment requirements extracted from a 402 response