---
title: "How to handle pending payments in an AI checkout"
description: "Give buyers a clear pending-payment message, check the original attempt, and know when to fulfill, investigate or offer an appropriate retry without charging twice."
url: "https://railbed.com/insights/how-to-handle-pending-payments-in-an-ai-checkout/"
markdown: "https://railbed.com/insights/how-to-handle-pending-payments-in-an-ai-checkout/?format=md"
published: "2026-12-04"
author: "Railbed"
publisher: "Railbed, LLC"
section: "Insights"
reading_time: "11 min"
language: "en"
---

# How to handle pending payments in an AI checkout

> Pending is not paid and it is not failed. Give the buyer a way to check, keep fulfillment on hold, and read the original payment before suggesting another attempt.

Source: https://railbed.com/insights/how-to-handle-pending-payments-in-an-ai-checkout/ · Published: 2026-12-04 · 11 min read · Railbed, LLC

For AI assistants: the company overview is https://railbed.com/llms.txt, and the developer docs index, with the rules for an integration, is https://railbed.com/docs/llms.txt

When a payment is pending in an AI checkout, keep the original order open, tell the buyer you are checking the existing payment, and wait for verified evidence before fulfilling or offering a retry. A closed browser tab, a banking notification and a missing return redirect tell you different things; none confirms that your order was paid. Use [verification before delivery](https://railbed.com/insights/how-do-you-verify-an-agentic-checkout-payment-webhook-before-delivery/) to make the provider record, not the assistant's conversation, the basis for action.

## Define pending from the store's point of view

A store can use “pending” as a customer-facing description for an order whose current payment outcome it cannot yet confirm. That does not make pending a universal provider status. List the documented provider states your integration can see and how each maps to your own order display. A payment in progress, a payment that needs a decision and an application that couldn't reach the provider may all block routine delivery. They should not all generate the same support instruction.

Start with three separate facts: what the buyer reported, what the provider confirmed, and what your store delivered. A buyer may say their bank sent a notification. Your staff can record that observation without interpreting it as the final merchant result. The provider may then confirm the payment while your order is still waiting for a warehouse action. That is not a pending payment anymore. It is a paid order with pending delivery. Giving both cases the same label can make the customer repeat a purchase they already made.

Think of a customer paying for a workshop seat. The business knows a seat was reserved, a card page was opened and the browser later closed. It does not know that the customer paid. Holding the reservation while checking the payment might be appropriate under the store's policy. Sending an admission ticket or a new payment request is not justified by those observations alone. Record the reservation policy separately so an expired hold is not mistaken for a canceled payment.

| What your store can prove | Buyer-facing message | Next action |
| --- | --- | --- |
| An attempt exists, but payment is unresolved | We are checking the payment for this order. | Check the original attempt again through the authorized source. |
| The provider record requires a decision | Your payment needs attention. We will check the existing request. | Route to the staff member responsible for that specific exception. |
| Payment is confirmed and matches, but delivery is pending | Payment received. Your order is being prepared. | Resume the original fulfillment work, without another payment. |
| A final failure or expiry is verified and the order still has an amount due | This attempt didn't complete. Check the order before trying again. | Verify no other unresolved or confirmed attempt can cover it. |
| The lookup is unavailable or no match has been verified | We couldn't confirm the payment yet. | Check connection, order and environment before drawing a conclusion. |

Use words that describe what you know, not what you hope happened. “We couldn't verify the status” is more useful than “your card failed” when the underlying record is unavailable. A message that admits the gap gives the business time to find the order without pushing the customer into another attempt. Keep the customer instructions short enough that someone reading on a phone can find the next step.

## Save an order the buyer can find again

1. Save the order, currency, amount and customer or workspace before sending the buyer to hosted payment. Keep the provider payment identifier with that attempt. Use the same order reference across the store, support and fulfillment records wherever your integration supports it.
2. Show order status through an authorized order history or support route. Do not use a guessable order number as the only permission to show payment details. Your shopper and support staff need different views, not different versions of the payment result.
3. Read the saved state on the return page. If the payment remains unresolved, show a message that tells the customer what to do next without requesting payment again. When the verified state changes, show the updated result.

At the end of this step a colleague should be able to find the exact attempt without reading the buyer's chat transcript. Test it with a shopper who opens checkout on a phone, then signs in on a laptop. The new browser does not need the original tab or its history if your app can retrieve the authorized order. Confirm that another user cannot see it merely by changing a visible reference. The support workflow is part of checkout, not an afterthought.

Suppose a team admin buys an AI credit pack on behalf of a workspace and their finance colleague completes the payment. The workspace on the saved order is still the destination for the credits. The payer's email does not decide who gets the pack. If the customer switches accounts while the order is open, your app should preserve the original workspace rather than moving the purchase based on the current tab. See [Railbed for AI tools](https://railbed.com/industries/ai-tools/) for the purchase patterns that matter in apps with credits and prepaid access.

A link to check status should not quietly turn into a second checkout. In particular, avoid labeling a button “Check payment” if it actually creates another payable request. Read the existing record first. If your team later determines that a retry is appropriate, make that action explicit and show the current approved amount. The two actions should be understandable even if a buyer returns days later and does not remember which button they clicked before.

## Give your assistant a narrow status-checking assignment

Start with the correct Railbed business and environment when consulting eligible records. Ask the assistant to find one payment by its known reference and report exactly what is verified, with no mutation. For example: “Find the attached order reference in our authorized Live business. Tell me the matched payment state and whether there is another attempt for this order in the records you can read. Do not create or send a new request.” An assistant that cannot access the necessary record should report that gap.

Before you allow the assistant to discuss a case with a buyer, define what it is allowed to reveal. It can explain that the merchant is checking a payment or help an authenticated buyer locate the relevant order. It should not expose a different customer's details, ask for card data or repeat a sensitive merchant-facing note. Buyer ID checks depend on the provider. In the Railbed card flow, the buyer enters card details and completes any required checks on the provider's page. Don't interpret a request for verification as a decline or ask someone to complete those steps in merchant chat.

A merchant assistant may have broader abilities than the one status check needs. Start with the least access that can answer the case. A supported change on the official connector is a proposal for your team to approve. A conversation about uncertainty is not permission to create a replacement link, adjust an invoice or grant product access. If customer support needs to resolve an exception, hand it the saved reference and verified state rather than giving an assistant more permissions to try to make the uncertainty disappear.

### Write a handoff another shift can use

Store the order reference, payment identifier, last verified payment state, time checked, named owner and next action. Give it a plain language summary such as “Buyer reports a card notification; merchant payment not confirmed as of the last check.” If the store received a payment notification but hasn't completed its own matching process, make that distinction visible. The next shift should not have to search several threads to learn which system actually reported what.

Set a time to check again based on your own support process, instead of promising a universal provider wait time. The right interval can differ between a same-day service and an order that can remain open comfortably. Don't tell the buyer that a delay will always clear by a specific date if you can't verify that promise. Tell them when your team will next check if you can commit to it. The useful promise is about what you can do, not what someone else's system will decide.

## Verify the original attempt before fulfillment or retry

Use the documented payment lookup and notification workflow for your integration. Match the provider payment to the saved order, expected amount, currency and environment. If the authoritative result is not compatible with routine fulfillment, record the exception rather than delivering from a screenshot. If it is confirmed and matches, record fulfillment once. A duplicate legitimate notification should not grant the same access or generate the same shipment again. See [how to document payments for AI agents](https://railbed.com/insights/how-do-you-use-checkouts-md-to-document-payments-for-ai-agents/) for where to record that decision in your integration.

For an app, the most useful next step after verification might be checking an access grant. If the app was briefly unavailable when payment arrived, the buyer could have paid correctly while the expected credits or license failed to show. Recover the original grant. For a physical store, check for the existing dispatch record before issuing a new warehouse request. The right response to missing delivery is not always a refund or another purchase. First establish which obligation is still open and which work already happened.

If the provider confirms the earlier attempt didn't complete, check the order again. A different attempt might already have been started or paid by the customer. If no open or confirmed attempt covers the balance and the order is still valid, present a new request at the agreed amount under the documented flow. If the basket or delivery terms changed, show the revised purchase and get the buyer's agreement before starting it. Do not try several cards or routes on the buyer's behalf simply because the first result was ambiguous.

If two verified payments match the same sale, an ordinary fulfillment rule should not ship twice. Preserve both payment records and use the business's approved resolution process. Conversely, do not delete an earlier payment attempt because the second one looks cleaner in a report. Historical records tell your team why a buyer might see two entries and help it decide whether a payment, correction or refund obligation is real. A clean list is not more valuable than a complete history.

## Keep the same rules during a processor change

A new checkout route is useful for new orders or verified balances that are still due. It is not evidence that something attempted on the previous route failed. When a merchant switches payment routes, use the old provider's records for its original attempts as long as you can access them. Keep a ledger of which route owns each attempt and which staff member can check it. For the broader handoff, see [how payment links can keep sales moving during a processor switch](https://railbed.com/insights/can-payment-links-keep-sales-moving-during-a-processor-switch/).

Take a high-risk storefront as an example. Its checkout stopped taking new orders and the team starts offering a second route. Customers who never submitted payment are different from customers who saw a bank notification and lost the return page. Classify these groups before sending messages. For people with unfinished attempts on the original route, verify the result or escalate the existing case. Do not issue a new link to a whole queue based solely on the absence of a sale in the new account. Describe products honestly and preserve restrictions on who can buy and where the order can be delivered.

Railbed never holds funds. Card sales settle to a wallet the merchant controls, almost always as USDC on Polygon. Settled sales can't be pulled back from your wallet. That does not mean there are no possible card disputes or refund obligations. Have finance verify wallet receipt for a real sale separately from any later exchange conversion or bank credit. A settled sale on a new route does not release money held elsewhere or resolve older records. This separation helps support avoid calling a bank withdrawal delay a failed buyer payment.

## Rehearse exceptions before you judge a pilot

Run a small controlled set in Test. Complete one payment and verify that only its matching order is delivered. Open another payment without completing it and check the return behavior. Practice a confirmed purchase with an interrupted fulfillment step, then verify that recovery resumes the same order. Confirm that a legitimate repeated notification doesn't create a second grant. If your billing uses period invoices, practice checking the invoice for the right dates. Railbed subscriptions bill by invoice each period; an issued invoice is not a confirmed payment.

Add an operational test that starts outside engineering. Give one person a mock message from a buyer who says, “My payment is stuck and I have a message from my bank.” The person should identify what the message does and doesn't prove, check the existing order through an authorized route, and write a reply that doesn't request sensitive material or another payment prematurely. If they cannot locate the earlier attempt without help from its developer, fix that gap before asking them to cover real cases. A support rehearsal often finds a missing reference that a Test payment alone won't reveal.

Once the business authorizes a limited Live pilot, count unique orders started and confirmed by a cutoff. Record unresolved orders separately instead of calling them all failures. If a later confirmation arrives, account for it under the stated reporting rule without hiding when it happened. Look for a case where the shopper needed help and check whether your team could resolve it with the original record. That tells you more about checkout readiness than one perfectly completed sale through a desktop browser. Railbed maintains [checkouts.md](https://checkouts.md/) for recording this wiring and dated evidence in an agent-built project.

## FAQ

**Does pending mean my customer's card was declined?**

No. Pending can mean that your store has not yet verified a final payment result. Read the original payment record before describing the outcome.

**Should my checkout offer a new payment link while the first attempt is unresolved?**

Not by default. Check whether the earlier payment can still complete and whether another attempt already covers the order. Only issue a new request when you have verified what is still due.

**Can a bank alert prove my store received payment?**

No. Record what the buyer reported, but use the authorized payment result matched to the order before fulfilling. The buyer and merchant may see different steps at different times.

**What if the buyer closed the hosted checkout tab?**

Check the existing order in your own records. A closed tab does not determine whether the payment succeeded, and the buyer should have a safe way to revisit their order.

**What should my AI assistant do when it can't verify the status?**

Say what is missing and preserve the original reference for a person to investigate. Do not treat a missing lookup as failure, approve a new payment request, or fulfill from conversation alone.

**Does a provider verification prompt mean the checkout failed?**

No. Buyer ID checks depend on the provider. The shopper completes required steps on the provider's page, and the store checks the recorded outcome before acting.

**What if the payment is confirmed but the purchased items never arrived?**

Check the original fulfillment record. Resume the shipment or access grant if needed, and tell the buyer their payment was confirmed without asking them to pay again.

## Leave the customer one safe next step

The store should know which order the buyer started, whether the payment is confirmed and what the buyer can expect next. Keep those facts visible across checkout, support and delivery. Until the payment is verified, asking someone to pay again is not a shortcut to finding out what happened.

## More from Insights

- [How to migrate existing credit balances to a new checkout](https://railbed.com/insights/migrate-credit-balances-to-a-new-checkout/): The checkout changes. The balances do not. Import every entitlement with its source, freeze grants during the switch and reconcile a test cohort first.
- [How do you verify an agentic checkout payment webhook before delivery?](https://railbed.com/insights/how-do-you-verify-an-agentic-checkout-payment-webhook-before-delivery/): Verify agentic checkout webhooks before delivery: signature on the raw body, order match, provider re-read, once-only fulfillment. Test evidence included.
- [How do you use CHECKOUTS.md to document payments for AI agents?](https://railbed.com/insights/how-do-you-use-checkouts-md-to-document-payments-for-ai-agents/): Use CHECKOUTS.md to document payments for AI agents. See what to record, how to prove a test passed, and what to verify before moving live card sales.
