Skip to content

BedrockAgentCoreClient.process_payment

rboto-bedrock-agentcore==0.4.0 · Service index · Types

Model summary (excerpt): Processes a payment using a payment instrument within a payment session.

Install and imports

python -m pip install "rboto[bedrock-agentcore]==0.4.0"
from rboto import BedrockAgentCoreClient
from rboto_bedrock_agentcore.types import (
    PaymentInput,
    PaymentType,
    ProcessPaymentOutput,
)

Signature

async def process_payment(
    *,
    payment_manager_arn: str,
    payment_session_id: str,
    payment_instrument_id: str,
    payment_type: PaymentType,
    payment_input: PaymentInput,
    user_id: str | None = None,
    agent_name: str | None = None,
    client_token: str | None = None,
) -> ProcessPaymentOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
payment_manager_arn Yes The ARN of the payment manager.
payment_session_id Yes The ID of the payment session.
payment_instrument_id Yes The ID of the payment instrument to use. For the CRYPTO_X402 and MPP payment types, specify the ID of a payment instrument that you created. For the AWS_BILLING_X402 payment type, specify the service-managed instrument ID aws.agentcorepayments.awsbilling.v1 . You don't create this instrument; it's available for any payment manager that has an AWS Billing payment connector.
payment_type Yes The type of payment to process.
payment_input Yes The payment input details specific to the payment type.
user_id No The user ID associated with this payment.
agent_name No The agent name associated with this request, used for observability.
client_token No A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

Output

ProcessPaymentOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
process_payment_id str Always present —
payment_manager_arn str Always present —
payment_session_id str Always present —
payment_instrument_id str Always present —
payment_type PaymentTypeOutput Always present PaymentTypeOutput
status PaymentStatusOutput Always present PaymentStatusOutput
payment_output PaymentOutput | None Always present PaymentOutput
created_at str Always present —
updated_at str Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

PaymentInput, PaymentType, ProcessPaymentOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_bedrock_agentcore.exceptions:

AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, SubscriptionRequiredError, ThrottlingError, ValidationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model