Skip to content

PaymentInputDict

Union Type

PaymentInputDict module-attribute

Dictionary form of PaymentInput, setting exactly one variant.

Union Member Types

PaymentInputCryptoX402Dict

Bases: TypedDict

Attributes

crypto_x402 instance-attribute

Input for a crypto X402 payment.

PaymentInputMppDict

Bases: TypedDict

Attributes

mpp instance-attribute

Contains the payment challenge from a 402 Payment Required response. Forward the raw WWW-Authenticate: Payment header value verbatim. In response, you receive a payment credential that satisfies the challenge. Provide exactly one challenge per request.