transmissionManual Capture

Understand how to place a hold on your customers' funds and capture them later either fully or partially and either in one-go or multiple times

In most online payments use-cases, a merchant would want to capture the funds from their customers' accounts in one-step after the issuer authorizes the payment. This is called 'one-step' payments flow and at Hyperswitch we term this the 'Automatic Capture' flow.

But in some cases, merchants would like to place a hold on the customer's funds post authorization so that they can capture the funds at a later time once they deliver the goods and services. This is called the 'two-step' flow or 'Auth and Capture' flow in general payments parlance. Here at Hyperswitch, we call this the 'Manual Capture' flow.

Benefits of Manual Capture

  1. Improved Control: Funds are captured only after goods or services are delivered.

  2. Flexibility: You can capture the full amount or a partial amount as per the delivery.

  3. Customer Satisfaction: Builds trust by charging customers only after fulfilling the order.

How to do Manual Capture?

1. Create a payment from your server with "capture_method" = "manual"

The 'capture_method' field determines the type of capture for a particular payment and it defaults to 'automatic' if not passed. So, to do manual capture, set "capture_method" = "manual" when creating a payment from your server

Sample curl:

2. Confirm the payment after collecting payment_method details

Confirm the payment after collecting the payment_method details from your customer and informing them that the funds in their account would be blocked and charged later once the goods and services are delivered. Unified checkout handles this for automatically. On successful authorization, the payment would transition to 'requires_capture' status.

Note - You can mark "confirm" = "true" in the previous step and directly move to the capture flow.

Sample curl:

3. Capture the payment after delivering the goods and services:

After delivering the goods and services, capture the payment by passing the payment_id from above step to payments/capture API endpoint. On successful capture, the payment would transition from 'requires_capture' to 'succeeded' status.

Sample curl:

Capture types available :

  1. Full capture - Capture the full amount that was authorized - Here the payments status transitions to 'SUCCEEDED' as soon the payments/capture API endpoint is executed for the payment_id .

  2. Partial Capture - Capture only a partial amount from the total amount that was authorized. Once the transaction is executed, the status goes to either partially_captured or partially_captured_and_capturable

    1. When capture method is manual & single capture is supported - partially_captured

    2. When capture method is manual & multiple captures are supported - partially_captured_and_capturable

  3. Over Capture - Details are shared herearrow-up-right

Last updated

Was this helpful?