# Refund flow

## Overview

The **refund flow** is used to return funds to a user after funds have been
captured through the [**reserve funds flow**](https://developers.google.com/standard-payments/v1/fops/card/reserve-capture-flow) or the
[**funds transfer flow**](https://developers.google.com/standard-payments/v1/fops/card/funds-transfer-flow). The Payment Integrator
implements the
[`asynchronousRefund`](https://developers.google.com/standard-payments/payment-integrator-card-fop-api/v1/payment-integrator-card-fop-api/asynchronousRefund)
method which is used to initiate the refund. The final result of the refund is
returned to Google with a call to
[`refundResultNotification`](https://developers.google.com/standard-payments/google-card-fop-api/v1/google-card-fop-api.v1/refundResultNotification).

A refund can be for an amount equal to or less than the original capture amount.
Multiple partial refunds must be supported.

![Refund](https://developers.google.com/standard-payments/shared/assets/flows/card-fop-refund-v1/refund-flow.png)

## Acquirer reference number

The ARN (Acquirer Reference Number) is usually not known to the Payment
Integrator until a few days after the refund is initiated. Once the value is
known, the Payment Integrator must call the Google hosted
[`setAcquirerReferenceNumberForRefundNotification`](https://developers.google.com/standard-payments/google-card-fop-api/v1/google-card-fop-api.v1/setAcquirerReferenceNumberForRefundNotification)
to provide the ARN to Google. Associating the ARN with this transaction allows
for Google to handle disputes and fraud related to this transaction.

This ARN is separate and different than the ARN that represents a capture. If
multiple refunds are issued they will each have a unique ARN.

## Subsequent operations

A refund can sometimes fail after the funds have been returned to the issuing
bank. For example, this can occur if the customer's account is closed before the
funds are deposited. In this case the refund can be reversed, and the funds
returned to Google through the
[`reverseRefundNotification`](https://developers.google.com/standard-payments/google-card-fop-api/v1/google-card-fop-api.v1/reverseRefundNotification).