# Reserve capture flow

## Overview

The **reserve capture flow** is used to handle payments using dual message
communication. The funds are first reserved through a call to the Payment
Integrator hosted
[`reserveFunds`](https://developers.google.com/standard-payments/payment-integrator-card-fop-api/v1/payment-integrator-card-fop-api/reserveFunds)
method. If this method synchronously returns `SUCCESS` it means that the funds
are reserved and can be captured or released. This step is commonly known as an
performing an Auth or Authorization.

### Capture funds reservation

The funds can be captured by a call to
[`asynchronousCaptureFundsReservation`](https://developers.google.com/standard-payments/payment-integrator-card-fop-api/v1/payment-integrator-card-fop-api/asynchronousCaptureFundsReservation).
This will start the process of moving the funds into Google's account.
![Reserve Capture](https://developers.google.com/standard-payments/shared/assets/flows/card-fop-reserve-capture-v1/reserve-capture-flow.png)

### Cancel funds reservation

Alternatively, the reservation of funds can be canceled with a call to
[`asynchronousCancelFundsReservation`](https://developers.google.com/standard-payments/payment-integrator-card-fop-api/v1/payment-integrator-card-fop-api/asynchronousCancelFundsReservation).
This frees the hold on the funds. If a reservation is canceled there is no money
movement. Reservations are automatically canceled after a fixed period of time,
typically seven days. ![Cancel Funds](https://developers.google.com/standard-payments/shared/assets/flows/card-fop-reserve-capture-v1/cancel-funds-flow.png)

## Acquirer reference number

If the funds are captured, a ARN (Acquirer Reference Number) is generated. That
value is usually not known to the Payment Integrator until a few days later.
Once the value is known, the Payment Integrator must call the Google hosted
[`setAcquirerReferenceNumberForCaptureNotification`](https://developers.google.com/standard-payments/google-card-fop-api/v1/google-card-fop-api.v1/setAcquirerReferenceNumberForCaptureNotification)
to provide the ARN to Google. Associating the ARN with this transaction allows
Google to handle disputes and fraud related to this transaction.

## Subsequent operations

If the funds are captured, the payment may be refunded by Google with a call to
the Payment Integrator hosted
[`asynchronousRefund`](https://developers.google.com/standard-payments/payment-integrator-card-fop-api/v1/payment-integrator-card-fop-api/asynchronousRefund)
method. Alternatively, the user or issuing bank can start the chargeback process
which is handled through the [**dispute flow**](https://developers.google.com/standard-payments/v1/fops/card/dispute-flow).