Skip to content

Interface: PaymentContext ​

Defined in: packages/x402-server-sdk/src/payer.ts:14

What the 402 said, beyond the entry being paid.

PaymentRequirements names no resource — x402 v2 puts it on PaymentRequired — so a payer that wants to echo it back in PaymentPayload.resource has to be handed it.

Properties ​

resource? ​

ts
resource?: object & object;

Defined in: packages/x402-server-sdk/src/payer.ts:16

The resource the 402 named.

Type Declaration ​

description? ​
ts
description?: string | null;
iconUrl? ​
ts
iconUrl?: string | null;
mimeType? ​
ts
mimeType?: string | null;
serviceName? ​
ts
serviceName?: string | null;
tags? ​
ts
tags?: string[] | null;
url ​
ts
url: string;