Process Payment
| bedrockagentcore_process_payment | R Documentation |
Processes a payment using a payment instrument within a payment session¶
Description¶
Processes a payment using a payment instrument within a payment session.
Usage¶
bedrockagentcore_process_payment(userId, agentName, paymentManagerArn,
paymentSessionId, paymentInstrumentId, paymentType, paymentInput,
clientToken)
Arguments¶
userId |
The user ID associated with this payment. |
agentName |
The agent name associated with this request, used for observability. |
paymentManagerArn |
[required] The ARN of the payment manager. |
paymentSessionId |
[required] The ID of the payment session. |
paymentInstrumentId |
[required] The ID of the payment instrument to use. |
paymentType |
[required] The type of payment to process. |
paymentInput |
[required] The payment input details specific to the payment type. |
clientToken |
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. |
Value¶
A list with the following syntax:
list(
processPaymentId = "string",
paymentManagerArn = "string",
paymentSessionId = "string",
paymentInstrumentId = "string",
paymentType = "CRYPTO_X402",
status = "PROOF_GENERATED",
paymentOutput = list(
cryptoX402 = list(
version = "string",
payload = list()
)
),
createdAt = as.POSIXct(
"2015-01-01"
),
updatedAt = as.POSIXct(
"2015-01-01"
)
)
Request syntax¶
svc$process_payment(
userId = "string",
agentName = "string",
paymentManagerArn = "string",
paymentSessionId = "string",
paymentInstrumentId = "string",
paymentType = "CRYPTO_X402",
paymentInput = list(
cryptoX402 = list(
version = "string",
payload = list()
)
),
clientToken = "string"
)