> For the complete documentation index, see [llms.txt](https://sapphiredao.gitbook.io/sapphire/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sapphiredao.gitbook.io/sapphire/technical-documentation/smart-contracts/escrow.md).

# Escrow

## Escrow

This contract holds the amount of value sent by the payer. It is created by the Escrow factory contract in the Invoice contract

### Refund Payer

```solidity
function refundToPayer(address _payer) external;
```

The function `refundToPayer` is designed to make refunds to the payer, if the creator reject the invoice.

#### Input Parameter

| Name     | Type      | Description                                           |
| -------- | --------- | ----------------------------------------------------- |
| `_payer` | `address` | The address of the payer who will receive the refund. |

### Withdraw To Creator

```solidity
function withdrawToCreator(address _creator) external;
```

The Function `withdrawToCreator` is designed to release funds held in the escrow to the creator when all conditions has been met.

Input Parameter
