

# PaymentIntentCheckoutDetails

The checkout details for a payment intent.

## Contents
<a name="API_PaymentIntentCheckoutDetails_Contents"></a>

 ** merchant **   <a name="BedrockAgentCore-Type-PaymentIntentCheckoutDetails-merchant"></a>
The merchant (payee) that receives this payment. The service records the merchant when the buyer approves the payment intent, so the agent doesn't provide it at authorization.  
Type: [Merchant](API_Merchant.md) object  
Required: Yes

 ** totalAmount **   <a name="BedrockAgentCore-Type-PaymentIntentCheckoutDetails-totalAmount"></a>
The total amount of this payment intent.  
Type: [PaymentIntentAmount](API_PaymentIntentAmount.md) object  
Required: Yes

 ** amountBreakdown **   <a name="BedrockAgentCore-Type-PaymentIntentCheckoutDetails-amountBreakdown"></a>
The shipping, tax, and discount that make up `totalAmount` together with the line items. If you omit it, none of them apply.  
Type: [PaymentIntentAmountBreakdown](API_PaymentIntentAmountBreakdown.md) object  
Required: No

 ** amountMode **   <a name="BedrockAgentCore-Type-PaymentIntentCheckoutDetails-amountMode"></a>
How the service interprets `totalAmount`. If you omit it, the default is `EXACT`. Valid values:  
+  `EXACT` - Charges exactly the total amount. This is the default, for a purchase that the buyer completes now.
+  `UPTO` - Treats the total amount as a maximum. Off-session charges can add up to this amount, and the service rejects any charge that would take the total above it. Use it with the `SETUP` capture strategy.
Type: String  
Valid Values: `EXACT | UPTO`   
Required: No

 ** lineItems **   <a name="BedrockAgentCore-Type-PaymentIntentCheckoutDetails-lineItems"></a>
The line items in this payment intent. When you provide line items, the sum of `amount` × `quantity` across them, plus `amountBreakdown.shipping` and `amountBreakdown.tax`, minus `amountBreakdown.discount`, must equal `totalAmount`. For a payment intent that uses the `UPTO` amount mode, where `totalAmount` is a maximum, the sum must not exceed it.  
Type: Array of [PaymentLineItem](API_PaymentLineItem.md) objects  
Array Members: Minimum number of 0 items. Maximum number of 100 items.  
Required: No

 ** referenceId **   <a name="BedrockAgentCore-Type-PaymentIntentCheckoutDetails-referenceId"></a>
Your reference for this payment intent, such as an order number. The service sends it to the payment provider.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 127.  
Required: No

 ** returnUrl **   <a name="BedrockAgentCore-Type-PaymentIntentCheckoutDetails-returnUrl"></a>
The URL to redirect the buyer to after they select a payment method.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 2048.  
Required: No

## See Also
<a name="API_PaymentIntentCheckoutDetails_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/bedrock-agentcore-2024-02-28/PaymentIntentCheckoutDetails) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/bedrock-agentcore-2024-02-28/PaymentIntentCheckoutDetails) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/bedrock-agentcore-2024-02-28/PaymentIntentCheckoutDetails) 