

# Accept payments for agentic commerce

With a payment service provider connector, your agent’s checkout can accept payments from buyers through your own account with a wallet or payment service provider, such as Amazon Pay, Stripe, or PayPal. Funds move from the buyer to you through your payment service provider, outside AWS. Unlike a stablecoin wallet payment, a payment for agentic commerce uses a payment intent. The buyer approves the payment intent, and then completes checkout with the payment service provider on your web page.

Compared with calling each payment service provider directly, AgentCore payments adds the following:
+ One payment intent API for Amazon Pay, Stripe, and PayPal, with the same statuses for each provider.
+ A buyer approval step. The buyer approves the exact merchant, line items, and total in a widget that AgentCore payments hosts, and checkout can’t start until the approval is confirmed. Buyer approval fixes the terms, but it doesn’t authenticate the buyer. For more information, see [What buyer approval covers](payments-buyer-approval.md#payments-buyer-approval-trust).
+ Credential storage in AgentCore Identity, so your agent and your code don’t hold your payment service provider credentials.
+ Permissions that separate your agent from the operations that move money.

AgentCore payments supports the following payment service providers:
+  [Amazon Pay](payments-amazon-pay.md): the buyer pays with their Amazon account. AgentCore payments signs Amazon Pay calls as your Solution Provider.
+  [Stripe](payments-stripe.md): the buyer pays by card in the Stripe Payment Element. AgentCore payments uses your Stripe restricted key.
+  [PayPal](payments-paypal.md): the buyer pays with PayPal. AgentCore payments uses your PayPal REST app credentials.

**Topics**
+ [Payment intent flow](#payments-agentic-commerce-flow)
+ [Capture strategies](#payments-agentic-commerce-capture-strategies)
+ [Regions and currencies](#payments-agentic-commerce-regions)
+ [Set up a payment auth and connector for your payment service provider](payments-agentic-commerce-setup.md)
+ [Create a payment intent](payments-agentic-commerce-create-intent.md)
+ [Get buyer approval for a payment intent](payments-buyer-approval.md)
+ [Complete checkout with your payment service provider](payments-agentic-commerce-checkout.md)
+ [Authorize, capture, or cancel a payment](payments-agentic-commerce-authorize-capture.md)
+ [Save a payment method for later charges](payments-agentic-commerce-save-payment-method.md)
+ [Test a payment service provider integration in sandbox mode](payments-agentic-commerce-test-sandbox.md)

## Payment intent flow
<a name="payments-agentic-commerce-flow"></a>

Every agentic commerce payment follows the same steps. Your agent’s tools create the payment intent. Your merchant backend, which the agent never calls, gets buyer approval, starts checkout, and moves money. For the recommended permissions, see [Agentic commerce payment permissions](payments-iam-roles.md#payments-iam-checkout).

1.  [Set up a payment auth and connector for your payment service provider](payments-agentic-commerce-setup.md). You do this once for each payment service provider account.

1.  [Create a payment intent](payments-agentic-commerce-create-intent.md) with the connector, the checkout details, and the capture strategy. The status is `CREATED`.

1.  [Get buyer approval](payments-buyer-approval.md) in the buyer approval widget.

1.  [Complete checkout with your payment service provider](payments-agentic-commerce-checkout.md). `InitiatePaymentIntent` starts the payment service provider checkout, and the buyer pays on your page. The status is `INITIATED`.

1.  [Authorize, capture, or cancel the payment](payments-agentic-commerce-authorize-capture.md). The status ends in `CAPTURED` or `CANCELLED`, or in `FAILED` after a decline.

To save a Stripe payment method and charge it later, see [Save a payment method for later charges](payments-agentic-commerce-save-payment-method.md).

## Capture strategies
<a name="payments-agentic-commerce-capture-strategies"></a>

The capture strategy sets when the buyer’s funds are collected, and when the buyer must be present. Each strategy belongs to a purchase mode:
+  `INSTANT`: human present at payment. Charge now. `AuthorizePaymentIntent` ends in `CAPTURED`.
+  `FUTURE`: human present at payment. Authorize now, and capture later with `CapturePaymentIntent`. `AuthorizePaymentIntent` ends in `AUTHORIZED`, and `CapturePaymentIntent` ends in `CAPTURED`.
+  `SETUP`: pre-approved purchase. The buyer is present to approve and save a payment method. You charge it later without the buyer present. Stripe only. This flow skips `AuthorizePaymentIntent`.

## Regions and currencies
<a name="payments-agentic-commerce-regions"></a>

Payment service provider connectors are available in US East (N. Virginia), US East (Ohio), US West (Oregon), Europe (Ireland), and Europe (Paris). For the list of Regions for each feature, see [Supported AWS Regions](agentcore-regions.md). The Amazon Pay region of your merchant account doesn’t depend on the AWS Region that you call.

Payment intents support `USD` and `EUR`. Your payment service provider account must also accept the currency. Otherwise, `InitiatePaymentIntent` returns the payment service provider’s error. Amazon Pay charges in the ledger currency of your merchant account, so `EUR` needs an Amazon Pay merchant account in the `EU` region. Events such as refunds and disputes go from your payment service provider to your own webhook. AgentCore payments doesn’t relay them.