Skip to content

Manual capture

A payment normally collects the money the moment it's confirmed. With manual capture, confirming only places a hold, called an authorization, on the buyer's card for the full amount. No money moves. Later you capture, which collects some or all of the held amount, or cancel, which releases the hold without charging anything.

Use it when you don't know the final amount while the buyer is paying: a rental with a damage deposit, a hotel stay with incidentals, a service quoted before the work is done, a bar tab. It also fits when you know the amount but need to confirm you can deliver first: a pre-order, a stock check, or a manual review of a large payment.

If you always charge the full amount right away, keep the default "capture_method": "automatic". Every hold needs a decision, capture or cancel, before it expires, and a forgotten hold ties up the buyer's money for days.

Where you can use it#

You choose manual capture with "capture_method": "manual" when your server creates the PaymentIntent with an API key:

PaymentManual capture
A standalone PaymentIntent from POST /v1/payment-intentsYes
A payment leg on an order, from POST /v1/orders/{order_id}/payment-intentsYes, with one leg per payment attempt. See Manual capture on orders.
Checkout sessions, payment links, invoices, and subscriptionsNo. These always capture automatically.

The payment options on the PaymentIntent decide how you can capture:

Payment optionWhat you can capture
card, apple_pay, google_payAll of the hold, or part of it
affirmAll of the hold only. See Affirm.
ach_debitNot offered with manual capture. Asking for it returns PAYMENT_OPTION_UNAVAILABLE with reason manual_capture_not_supported.

How a hold works#

A manual-capture PaymentIntent follows the usual lifecycle with one extra stop. After confirmation it waits in requires_capture until you capture, you cancel, or the hold expires.

A manual-capture PaymentIntentStartFinal
  • requires_payment_method moves to requires_action on confirm, card needs 3D Secure
  • requires_action moves to requires_capture on buyer authenticates
  • requires_payment_method moves to requires_capture on confirm
  • requires_capture moves to succeeded on capture
  • requires_capture moves to canceled on cancel
  • requires_capture moves to expired on authorization_expires_at passes

amount_money is the amount you asked the buyer for, and capturing never changes it. Four money fields say where the funds stand. Each is absent until the hold is placed:

FieldMeaning
authorized_moneyThe amount of the hold. Always equals amount_money, and never changes.
capturable_moneyWhat you can still capture. Equals authorized_money while the hold is open, and drops to zero once you capture or cancel, or the hold expires.
captured_moneyWhat you collected. Zero until you capture. Book revenue and print receipts from this field.
released_moneyWhat went back to the buyer without being charged: the uncaptured part after a partial capture, or the whole hold after a cancellation or expiry.

authorized_money always equals captured_money plus capturable_money plus released_money.

Three timestamps go with them. authorized_at and authorization_expires_at are set when the hold is placed, and captured_at when you capture. authorization_expires_at is the deadline for your decision; see Authorization expiry.

Every PaymentIntent in a response or webhook carries supported_actions, the actions its current state accepts. While the hold is open it's ["capture", "cancel"]. After a capture, cancellation, or expiry it's []. Choose your next call from this list rather than from status. A listed action can still be refused by something outside the PaymentIntent, such as an open payment review or the state of its order.

Place a hold#

Placing a hold, then capturing itResponse
BrowserYour serverFlintPOST /v1/payment-intents with capture_method manualpayment_collection for Stripe ElementsConfirmationToken ID from ElementsPOST /v1/payment-intents/{id}/confirmstatus requires_capturepayment_intent.requires_capture webhookPOST /v1/payment-intents/{id}/capture, once you know the amountstatus succeeded, with captured_money
  1. Your server sends POST /v1/payment-intents with capture_method manual to Flint
  2. Flint returns payment_collection for Stripe Elements to Your server
  3. Browser sends ConfirmationToken ID from Elements to Your server
  4. Your server sends POST /v1/payment-intents/{id}/confirm to Flint
  5. Flint returns status requires_capture to Your server
  6. Flint sends payment_intent.requires_capture webhook to Your server
  7. Your server sends POST /v1/payment-intents/{id}/capture, once you know the amount to Flint
  8. Flint returns status succeeded, with captured_money to Your server

Create the PaymentIntent with "capture_method": "manual". Set amount_money to the most you might need to collect, since you can capture less but never more.

cURL
curl -X POST https://api.withflintpay.com/v1/payment-intents \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: hold-camera-rental-001" \
  -d '{
    "amount_money": {"amount": 12900, "currency": "USD"},
    "payment_options": ["card"],
    "capture_method": "manual"
  }'
Response
{
  "data": {
    "payment_intent_id": "pi_1kmn0aExample",
    "status": "requires_payment_method",
    "supported_actions": ["confirm", "cancel"],
    "amount_money": {"amount": 12900, "currency": "USD"},
    "capture_method": "manual",
    "payment_options": ["card"],
    "payment_flow": "api",
    "payment_collection": {
      "stripe": {
        "account_id": "acct_Example",
        "publishable_key": "pk_test_Example",
        "elements": {
          "next_step": "create_confirmation_token",
          "submit_to": "confirm_payment_intent",
          "mode": "payment",
          "amount_money": {"amount": 12900, "currency": "USD"},
          "payment_method_types": ["card"],
          "payment_method_creation": "manual"
        }
      }
    }
  },
  "request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}

Confirming places the hold. Mount Stripe Elements from payment_collection, call elements.submit(), create a ConfirmationToken in the browser, and send its ctoken_... ID to your server. Your server confirms; the browser never confirms the PaymentIntent itself. Server-confirmed payments covers collection and 3D Secure in full.

cURL
curl -X POST https://api.withflintpay.com/v1/payment-intents/pi_1kmn0aExample/confirm \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: confirm-camera-rental-001" \
  -d '{"credential_type": "stripe_confirmation_token", "stripe": {"confirmation_token": "ctoken_Example"}}'
Response
{
  "data": {
    "payment_intent_id": "pi_1kmn0aExample",
    "status": "requires_capture",
    "supported_actions": ["capture", "cancel"],
    "amount_money": {"amount": 12900, "currency": "USD"},
    "capture_method": "manual",
    "authorized_money": {"amount": 12900, "currency": "USD"},
    "capturable_money": {"amount": 12900, "currency": "USD"},
    "captured_money": {"amount": 0, "currency": "USD"},
    "released_money": {"amount": 0, "currency": "USD"},
    "authorized_at": "2026-07-03T02:57:20Z",
    "authorization_expires_at": "2026-07-10T02:57:19Z",
    "payment_source": {
      "type": "card",
      "card": {"brand": "visa", "last4": "4242"}
    },
    "current_payment_action": null
  },
  "request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4E"
}

The hold is in place: status is requires_capture, the full amount is in capturable_money, and nothing has been charged. current_payment_action is null because the buyer has nothing left to do.

If the card needs 3D Secure, the confirm response is requires_action instead, with the step for the browser in current_payment_action. Once the buyer authenticates, confirm again with {"credential_type": "attached"} and the PaymentIntent reaches requires_capture. Either way, the payment_intent.requires_capture webhook tells you the hold is in place.

Store payment_intent_id and authorization_expires_at with the rental, booking, or order the hold is for. You can't raise a hold later: amount_money can change only before the first confirmation. To hold more, cancel this hold and have the buyer confirm a new PaymentIntent.

Capture the payment#

To collect the full hold, capture with no body. An empty {} body works the same.

cURL
curl -X POST https://api.withflintpay.com/v1/payment-intents/pi_1kmn0aExample/capture \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: capture-camera-rental-001"

To collect part of it, send amount_money. Here the camera came back a day early, so the merchant captures $98.00 of the $129.00 hold:

cURL
curl -X POST https://api.withflintpay.com/v1/payment-intents/pi_1kmn0aExample/capture \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: capture-camera-rental-partial-001" \
  -d '{"amount_money": {"amount": 9800, "currency": "USD"}}'
Response
{
  "data": {
    "payment_intent_id": "pi_1kmn0aExample",
    "status": "succeeded",
    "supported_actions": [],
    "amount_money": {"amount": 12900, "currency": "USD"},
    "capture_method": "manual",
    "authorized_money": {"amount": 12900, "currency": "USD"},
    "capturable_money": {"amount": 0, "currency": "USD"},
    "captured_money": {"amount": 9800, "currency": "USD"},
    "released_money": {"amount": 3100, "currency": "USD"},
    "authorized_at": "2026-07-03T02:57:20Z",
    "captured_at": "2026-07-05T16:12:04Z",
    "authorization_expires_at": "2026-07-10T02:57:19Z"
  },
  "request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4F"
}

The PaymentIntent is succeeded. captured_money is the $98.00 you collected, and the other $31.00 is in released_money, on its way back to the buyer. amount_money still shows the $129.00 you asked for, so reconcile from captured_money. The processing fee is priced on the amount you capture, and refunds can return up to captured_money.

Warning: One hold, one capture

A PaymentIntent can be captured once. A partial capture releases the rest of the hold in the same request, and the released amount can't be captured later. For installments, authorize only the installment you intend to collect. On an order, a successful final capture discharges the uncaptured part of that authorization; it cannot be collected again as order debt.

The amount you capture must be:

  • Greater than zero, and in the hold's currency. Otherwise the request returns 400 INVALID_REQUEST, with param set to amount_money.amount or amount_money.currency.
  • No more than capturable_money. A larger amount returns 409 LIMIT_EXCEEDED, with the most you can capture in details[0].maximum_money. If the final bill grew past the hold, capture the full hold and collect the difference as a new payment.
  • Large enough for your pricing. An amount below the smallest payment your rates cover returns 409 MERCHANT_NOT_READY with reason pricing_not_authorized, and the hold stays in place. Cancel the hold instead of capturing a very small amount. See When pricing rejects a payment.

Retry a capture safely#

Send an Idempotency-Key on every capture. If a capture times out, retry with the same key and body: Flint returns the original result, or finishes the interrupted capture, and never captures twice. A new key is a new request, and once the payment is captured it returns 409 ACTION_NOT_ALLOWED with reason already_applied. See Idempotency.

To refuse the capture if the PaymentIntent changed since you last read it, send that read's version as expected_version. A stale value returns 409 VERSION_CONFLICT.

Payment reviews#

If a risk rule opened a review on the payment, capture returns 409 PAYMENT_REVIEW_OPEN until someone approves it. details[0].blocking_resources names the review. Approving doesn't capture: capture again afterward, before authorization_expires_at. Declining the review cancels the hold. If nobody decides in time, Flint cancels the hold before it expires and closes the review as expired.

Cancel the hold#

If you won't be charging the buyer, cancel to release the hold right away:

cURL
curl -X POST https://api.withflintpay.com/v1/payment-intents/pi_1kmn0aExample/cancel \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: cancel-camera-rental-001" \
  -d '{"cancellation_reason": "requested_by_customer"}'
Response
{
  "data": {
    "payment_intent_id": "pi_1kmn0aExample",
    "status": "canceled",
    "supported_actions": [],
    "amount_money": {"amount": 12900, "currency": "USD"},
    "capture_method": "manual",
    "cancellation_reason": "requested_by_customer",
    "authorized_money": {"amount": 12900, "currency": "USD"},
    "capturable_money": {"amount": 0, "currency": "USD"},
    "captured_money": {"amount": 0, "currency": "USD"},
    "released_money": {"amount": 12900, "currency": "USD"}
  },
  "request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4G"
}

The body is optional. cancellation_reason takes requested_by_customer, duplicate, fraudulent, or abandoned. Send no body, or {}, to cancel without a reason; cancellation_reason is then absent on the canceled PaymentIntent.

Nothing was charged, so there's nothing to refund, and the whole hold moves to released_money. Flint releases the authorization immediately, but the pending charge can take a few days to leave the buyer's statement, depending on their bank. Tell the buyer to expect that.

Authorization expiry#

Card networks release holds that aren't captured in time. Each hold's deadline is in authorization_expires_at, usually seven days after authorized_at for a card. When it passes without a capture, the PaymentIntent moves to expired, the whole hold moves to released_money, and Flint sends payment_intent.expired. An expired PaymentIntent has no cancellation_reason; that field appears only on a canceled one.

A capture sent after authorization_expires_at is refused with 409 ACTION_NOT_ALLOWED, and nothing is charged. Flint checks the authorization with the card processor first, then refuses with one of two reasons:

details[0].current_statusdetails[0].reasonWhat happened
expired or canceledterminal_statusThe hold is already released. supported_actions is [].
requires_captureauthorization_expiredThe deadline passed, and Flint hasn't recorded the release yet. supported_actions still lists cancel: cancel to release the hold now, or let Flint release it.

Either way, collecting the money now takes a new payment from the buyer. An expired hold usually means you delivered without collecting, so plan for the deadline:

  • Read authorization_expires_at from the confirm response or the payment_intent.requires_capture webhook, and schedule the capture well before it. Don't assume seven days.
  • If you won't know the final amount before the deadline, capture what you can justify in time, or cancel and place a new hold closer to fulfillment.
  • Alert on payment_intent.expired. Each one is money you meant to collect.

Cancel or refund?#

Which one you need depends on whether you've captured.

Before capture

Cancel

The buyer hasn't been charged. Cancel the PaymentIntent, and the pending hold drops off their statement without a charge ever posting.

After capture

Refund

The captured amount was collected, so returning any of it is a refund, up to captured_money. Refunding a PaymentIntent that is still requires_capture returns 409 ACTION_NOT_ALLOWED with reason status_not_reached.

The amount released by a partial capture is neither. It was never charged, so it needs no refund, and it can't be captured later. If you released too much, collecting it takes a new payment.

Refused captures and cancels#

When the PaymentIntent's state doesn't allow a capture or cancel, the request returns 409 ACTION_NOT_ALLOWED. details[0].resource_type is payment_intent, and details[0] also carries current_status, supported_actions, and a reason:

Requestcurrent_statusreasonWhat to do
Capturerequires_payment_method, requires_confirmation, or requires_actionstatus_not_reachedThe hold isn't in place yet. Wait for payment_intent.requires_capture.
Capturesucceededalready_appliedIt's already captured. Read the PaymentIntent for captured_money.
Capturecanceled or expiredterminal_statusThe hold is released. Collect with a new payment.
Capturerequires_captureauthorization_expiredThe deadline passed. See Authorization expiry.
Cancelsucceededterminal_statusMoney was collected, so issue a refund. remediation.next_actions includes create_refund.
Cancelcanceled or expiredalready_appliedThe hold is already released. Nothing to do.

A retry of your own request with the same Idempotency-Key and body returns its original result instead of already_applied. Refused actions covers this error in general.

Manual capture on orders#

An order carries the line items, tax, and delivery the hold is for, and its payment status follows the hold. You create the order's payment leg yourself with "capture_method": "manual", confirm it through the order, then capture or cancel it through the same PaymentIntent routes as a standalone hold.

These rules apply to the order and its leg:

  • Finalize the order first. While a hold is open, changes to the order's financial fields, such as its line items, charges, and discounts, return 409 PAYMENT_ATTEMPT_ACTIVE, and so does closing the order. Capture or cancel the hold first.
  • One leg per attempt. A payment attempt that confirms more than one leg, where any of them uses manual capture, returns 400 INVALID_REQUEST with detail code NOT_ALLOWED.
  • No automatic tax. An order that uses automatic tax needs immediate capture. Paying it with a manual-capture leg returns 400 INVALID_REQUEST with detail code NOT_ALLOWED.
  • Your server creates the leg. Creating it requires commerce.orders.write and an API key. A checkout session credential that asks for "capture_method": "manual" gets 400 INVALID_REQUEST with detail code NOT_ALLOWED on capture_method.

Create the leg. With no amount_money, it covers the order's outstanding balance.

cURL
curl -X POST https://api.withflintpay.com/v1/orders/ord_1kmn0aExample/payment-intents \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: pi-order-rental-001" \
  -d '{"capture_method": "manual"}'
Response
{
  "data": {
    "payment_intent_id": "pi_1kmn0aExample",
    "order_id": "ord_1kmn0aExample",
    "status": "requires_payment_method",
    "supported_actions": ["cancel"],
    "amount_money": {"amount": 18500, "currency": "USD"},
    "capture_method": "manual",
    "payment_options": ["card"],
    "payment_collection": {
      "stripe": {
        "account_id": "acct_Example",
        "publishable_key": "pk_test_Example",
        "elements": {
          "next_step": "collect_payment_source",
          "submit_to": "pay_order",
          "mode": "payment",
          "amount_money": {"amount": 18500, "currency": "USD"},
          "payment_method_types": ["card"],
          "payment_method_creation": "manual"
        }
      }
    }
  },
  "request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4H"
}

The leg's fields are flat in data, with payment_collection beside them. Its supported_actions never lists confirm: an order's leg is confirmed through the order, and POST /v1/payment-intents/{payment_intent_id}/confirm refuses it with 409 ACTION_NOT_ALLOWED and reason order_owned.

Collect the card with Stripe Elements as next_step describes, then send the resulting payment method to the order's pay route with action: "confirm_payment_intents". Embedded payments covers collection in full.

cURL
curl -X POST https://api.withflintpay.com/v1/orders/ord_1kmn0aExample/pay \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: pay-order-rental-001" \
  -d '{
    "action": "confirm_payment_intents",
    "payment_intents": [{
      "credential_type": "token",
      "payment_intent_id": "pi_1kmn0aExample",
      "token": "pm_1kmn0aExample"
    }],
    "expected_outstanding_money": {"amount": 18500, "currency": "USD"}
  }'
Response
{
  "data": {
    "order": {
      "order_id": "ord_1kmn0aExample",
      "status": "open",
      "payment_status": "unpaid",
      "authorization_amounts": {
        "authorized_money": {"amount": 18500, "currency": "USD"},
        "capturable_money": {"amount": 18500, "currency": "USD"},
        "expires_at": "2026-07-10T02:58:26Z"
      },
      "settlement_amounts": {
        "paid_money": {"amount": 0, "currency": "USD"},
        "outstanding_money": {"amount": 18500, "currency": "USD"}
      }
    },
    "order_payment_attempt": {
      "order_payment_attempt_id": "opat_1kmn0aExample",
      "status": "requires_capture",
      "is_resumable": false
    }
  },
  "request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4J"
}

The order is still open and unpaid, because only captured money counts toward payment_status. The hold shows in authorization_amounts, and expires_at is the PaymentIntent's authorization_expires_at. The attempt is waiting on you, not the buyer: is_resumable is false, and the next step is a capture or a cancel, not action: "resume".

Fulfillments need a paid order, so creating one while the hold is open returns 409 ACTION_NOT_ALLOWED with reason status_not_reached. Capture first. If you deliver outside Flint before charging, capture before authorization_expires_at.

Capture the leg like any other PaymentIntent. Leave out amount_money for the full hold, or send it for part of it:

cURL
curl -X POST https://api.withflintpay.com/v1/payment-intents/pi_1kmn0aExample/capture \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: capture-order-rental-001"

The response is the PaymentIntent, with captured_money and released_money as for a standalone capture. Flint finds the payment attempt from the leg, so the request takes no order_payment_attempt_id, and the order changes in the same request:

  • A full capture collects the authorization. When it covers the remaining balance, the order becomes paid and closes with closed_reason: paid.
  • A partial capture is your final bill for that authorization. Its uncaptured part becomes settlement_amounts.released_money and reduces outstanding_money. When the capture and release cover the remaining balance, the order becomes paid and closes with closed_reason: paid. No extra close call is needed.

For a $25.00 order with a $25.00 hold and a $15.00 final capture, paid_money and net_collected_money are $15.00, released_money is $10.00, and outstanding_money is zero. pricing_amounts.total_money stays $25.00. The release is neither a refund nor a write-off, and only the captured $15.00 can be refunded. A later refund does not restore the released debt.

Release discharges only debt within the successful capture's authorization, capped at the remaining priced obligation. A smaller hold does not discharge an unrelated balance. Canceling or expiring a hold does not add order released_money.

Read the order with GET /v1/orders/{order_id}, or from the order.paid and order.closed webhooks.

To release the hold instead, cancel the leg with POST /v1/payment-intents/{payment_intent_id}/cancel, exactly as for a standalone hold. The order stays open and unpaid.

The order's state can refuse a capture or cancel that the PaymentIntent allows. These refusals are 409 ACTION_NOT_ALLOWED with details[0].resource_type order: reason terminal_status when the order is closed, and already_applied when it's already paid. A leg in requires_payment_method or requires_confirmation that an open payment attempt is still using returns 409 PAYMENT_ATTEMPT_ACTIVE; finish or cancel the attempt first. A leg in requires_action doesn't list cancel in supported_actions, because the buyer's payment attempt owns it until it finishes.

Webhooks#

Holds are resolved minutes or days after they're placed, often by a scheduled job rather than a request, so webhooks are the reliable record of each change. The PaymentIntent sends every hold event, and a PaymentIntent on an order carries order_id. The order sends order.paid or order.partially_paid only when its payment_status changes.

  1. What happens: You confirm a manual-capture payment
  2. Flint sends: payment_intent.requires_action
    Only if the card needs 3D Secure.
  3. Flint sends: payment_intent.requires_capture
    The hold is in place. Carries authorized_money, capturable_money, and authorization_expires_at.
  4. What happens: You capture
  5. Flint sends: payment_intent.succeeded
    The money was collected. Carries captured_money, and released_money for any uncaptured part.
  6. Flint sends: order.paid
    When collection and final-capture release settle the order's remaining balance. A partial capture of a hold for the whole balance qualifies.
  7. Flint sends: order.closed
    When the settled order closes with closed_reason: paid.
  8. What happens: You cancel
  9. Flint sends: payment_intent.canceled
    The hold is released into released_money. cancellation_reason says why, when one was given.
  10. What happens: The hold reaches authorization_expires_at
  11. Flint sends: payment_intent.expired
    The hold lapsed, and the whole authorization is in released_money. There's no cancellation_reason.

Each changed order axis sends its event once: order.paid for payment and order.closed for closure. A settled final capture does not also send order.partially_paid or order.updated, and re-observing the same capture sends nothing.

There's no separate capture event: a capture is the PaymentIntent succeeding, so it arrives as payment_intent.succeeded. Cancellation and expiry are different events, so an expiry handler doesn't need to inspect cancellation_reason.

Test it#

In the sandbox, you can place and capture a hold from your terminal on an order. Create an order with "tax": {"enabled": false} (manual capture refuses automatic tax), add one manual-capture leg for its balance, and confirm the leg with a test token:

cURL
curl -X POST https://api.withflintpay.com/v1/orders/ord_1kmn0aExample/payment-intents \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: hold-test-leg-001" \
  -d '{
    "amount_money": {"amount": 2500, "currency": "USD"},
    "payment_options": ["card"],
    "capture_method": "manual"
  }'

curl -X POST https://api.withflintpay.com/v1/orders/ord_1kmn0aExample/pay \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: hold-test-pay-001" \
  -d '{
    "action": "confirm_payment_intents",
    "payment_intents": [{
      "credential_type": "token",
      "payment_intent_id": "pi_1kmn0aExample",
      "token": "pm_card_visa"
    }],
    "expected_outstanding_money": {"amount": 2500, "currency": "USD"}
  }'

The PaymentIntent lands in requires_capture; capture or cancel it with the routes above. In a browser with Stripe Elements, the universal success card, , places a hold.

To check that your code waits for payment_intent.requires_capture instead of assuming the hold from the confirm response, use the 3D Secure card, , which stops at requires_action first.

To rehearse the review gate, create a sandbox review rule and confirm a manual-capture payment; Testing walks through it.

No test card makes a hold expire early. To check that your expiry handler is wired up, send payment_intent.expired from the test-events endpoint. A test event carries an example PaymentIntent with placeholder IDs, so it proves delivery and routing, not the logic behind them. A handler that reads the hold back from Flint needs a real hold.

Errors#

  • HTTP 400
    param names the input. On a capture, amount_money isn't greater than zero (INVALID_VALUE) or isn't in the hold's currency (NOT_ALLOWED); for Affirm, it isn't the full hold (NOT_ALLOWED). On an order, the payment attempt confirms more than one leg with manual capture, the order uses automatic tax, or a checkout session credential asked for "capture_method": "manual" (NOT_ALLOWED).
  • HTTP 409
    With reason manual_capture_not_supported, the PaymentIntent offers ach_debit, which captures automatically only. Remove ach_debit, or use automatic capture.
  • HTTP 409
    The capture is larger than capturable_money. details[0].maximum_money is the most you can capture. Capture the full hold and collect the rest as a new payment.
  • HTTP 409
    With reason pricing_not_authorized, no price on your account covers the capture amount, usually because it's too small. The hold stays in place: cancel it, or capture a larger amount. See Processing fees.
  • HTTP 409
    A risk review is open on the payment. Approve the review named in details[0].blocking_resources, then capture again. Approving doesn't capture.
  • HTTP 409
    The state of the PaymentIntent or its order refuses the capture, cancel, or refund. Branch on details[0].reason and details[0].resource_type: see Refused captures and cancels and Authorization expiry. Confirming an order's leg through /confirm returns order_owned: pay through the order.
  • HTTP 409
    On an order, a change to its financial fields while a hold is open: capture or cancel the hold first. Or a cancel of a leg that an open payment attempt is still using: finish or cancel the attempt first.
  • HTTP 409
    OPERATION_IN_PROGRESSRetry the same request
    Another capture or cancel of this payment is still running. Wait for Retry-After when present, then resend the same request with the same Idempotency-Key.
  • The card processor refused the capture. Read the PaymentIntent to check its status and amounts, correct the request if needed, and retry with a new Idempotency-Key.
  • HTTP 409
    VERSION_CONFLICTRefresh, then retry
    The expected_version you sent is stale. Read the PaymentIntent again and decide from its current state.

Error handling covers the envelope these arrive in and the request IDs to log.

Common mistakes#

  • Treating the hold as revenue. requires_capture means the money is reserved, not collected. Until captured_money is positive, you haven't been paid.
  • Reading amount_money as the amount collected. It's the amount you asked for, and capture never changes it. After a partial capture, captured_money is what you were paid.
  • Letting holds expire unnoticed. Schedule a capture or cancel before authorization_expires_at for every hold, and alert on payment_intent.expired.
  • Planning to capture twice. One hold, one capture. A partial capture releases the rest immediately.
  • Waiting for a capture event. There isn't one. A successful capture arrives as payment_intent.succeeded.
  • Refunding a hold. Before capture there's nothing to refund. Cancel instead.
  • Resuming an attempt that's waiting for capture. An order attempt in requires_capture needs a capture or a cancel, not action: "resume".
  • Editing an order under an open hold. Financial changes return PAYMENT_ATTEMPT_ACTIVE until you capture or cancel. Settle the total first, then pay.

Next steps#

Server-confirmed paymentsCollect the card with Stripe Elements and confirm from your server, including 3D Secure.Embedded paymentsPay an order from your own UI, including legs you create yourself.Risk controlsReview rules that hold a capture until someone approves it.RefundsReturn money after you capture.

Was this helpful?