# AWS AgentCore Payments: Test Cart Approval Before Taking Real Orders

Use a payment provider's sandbox to test a cart change, buyer approval and the difference between authorizing and capturing a charge.

By Paras Madan | 2026-11-30


The first test for a shopping agent should be a changed cart, not a successful sale. If a buyer approved one item and the assistant adds a second, the system should ask the buyer to approve again. A friendly chat message saying “done” does not prove payment was authorized or money captured.

[AWS launched commerce payments in Bedrock AgentCore](https://aws.amazon.com/about-aws/whats-new/2026/11/agentcore-payments-agentic-e-commerce/) on November 29. It lets a merchant add buyer checkout to a shopping agent using its own Stripe, PayPal or Amazon Pay account. This is a buyer paying a merchant for an order, not the separate AgentCore micropayments feature for an agent buying API or tool access.

## Separate the agent, the buyer and the backend

In the [official payment flow](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/payments-agentic-commerce.html), the agent can create a payment intent. The merchant backend handles the buyer approval and starts provider checkout. Give the agent only the permissions it needs for its role. Do not give it the backend permissions that move money.

The buyer approves the merchant, items and total in AgentCore's hosted widget. AWS describes a signed record of the terms that the agent cannot change. If the cart changes, get fresh approval. Approval binds the terms, but it is not buyer authentication or a successful payment by itself. Payment details are collected in the provider's form. The merchant remains responsible for its existing merchant, refund and dispute processes.

## Make the sandbox prove more than the happy path

Use the [AWS sandbox instructions](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/payments-agentic-commerce-test-sandbox.html) and the provider's test credentials, never a live connector. Use a dummy $25 item and keep an order record separate from the agent transcript. Run these checks for the provider you expect to use:

1. **Changed cart:** Approve the $25 cart. Add a second $25 item in the test. Verify the old approval cannot authorize the $50 total and the new amount must be shown to the buyer.
2. **Decline or abandonment:** Verify the order is not marked paid or sent to fulfillment when checkout fails or the buyer leaves. Record the provider outcome instead of treating the assistant's message as confirmation.
3. **Capture timing:** For an in-stock item using `INSTANT`, AWS documents `CAPTURED` after authorization. For a pre-order using `FUTURE`, expect `AUTHORIZED` first and `CAPTURED` only after your backend captures. Cancel uncaptured test holds when finished.

AWS documents a third strategy, `SETUP`, for saving a payment method before a later charge. Its sandbox table lists it for Stripe, not PayPal or Amazon Pay. Do not treat those provider options as interchangeable.

## Confirm where you can run it

AWS lists US East (N. Virginia and Ohio), US West (Oregon), and Europe (Ireland and Paris) for this launch. Its [AgentCore FAQ](https://aws.amazon.com/bedrock/agentcore/faqs/) describes USD and EUR support. Check that the Region, currency and provider combination fits your own merchant setup before starting a rollout.

In a real order system I'd make the provider's confirmed state, correlated with the merchant's own order record, the trigger for fulfillment. The chat can explain what happened, but it should not get to decide whether an order is paid.

I'm Paras. I help AI teams make payment and integration changes understandable to the developers who have to ship them.

[Book a 30-minute call](https://cal.com/paras-madan/30min).
