PaymentInput

sealed class PaymentInput

The payment input details, which vary by payment type.

Inheritors

Types

Link copied to clipboard

Input for a crypto X402 payment.

Link copied to clipboard
data class Mpp(val value: MppPaymentInput) : PaymentInput

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.

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard

Casts this PaymentInput as a Mpp and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.MppPaymentInput value. Throws an exception if the PaymentInput is not a Mpp.

Link copied to clipboard

Casts this PaymentInput as a Mpp and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.MppPaymentInput value. Returns null if the PaymentInput is not a Mpp.