Authorization and capture represent different moments in a card payment. Walk through a sandbox hold and a later partial capture.
Build the example
Imagine a repair estimate of 100 units and an actual invoice of 72. Authorization reserves the estimate. Capture settles the amount accepted under the provider’s rules. Check provider and method documentation for partial capture support, authorization windows and what happens to the unused 28 units.
Make a ledger example with columns for authorized amount, captured amount and state. Populate it before capture and again after confirmed settlement. If your provider reports a remaining capturable balance, preserve that separately and verify its rules. Never infer the disposition of unused funds solely from subtraction in the local ledger.
Watch the failure boundary
The amount an interface displays may represent the authorization, the captured funds or the refundable balance. Label those amounts separately. Ask the provider for the state after an ambiguous capture response and test how your interface behaves while it is pending. Avoid showing the order as settled solely because a browser returned from checkout.
Verify the behavior
Verify the provider’s resulting status for the capture, then reflect that status internally. Try an expired authorization and a capture above the authorized amount in a sandbox fixture. Treat reversal, refund and expiration as different transitions because they describe different movements or releases of funds.
Sources
Technical references checked .



