---
title: Configuration
sidebar:
  label: Global Configuration
---

Resrv keeps its configuration in two places:

- **CP-managed settings**: business information, the reservation engine, checkout, emails and currency. You edit these under **Resrv → Settings** in the Control Panel. Statamic saves them to `resources/addons/statamic-resrv.yaml`, which you should commit to version control.
- **Developer keys**: the payment gateways and Stripe credentials, in the publishable `config/resrv-config.php` file.

At boot, Resrv merges the blueprint defaults, then `config/resrv-config.php`, then your CP-saved values into a single `resrv-config.*` config. **The Control Panel value always wins** over the same key in the config file.

:::info[Migrating from v5]
In v5 every setting lived in `config/resrv-config.php`. In v6 the business and engine settings moved to the Control Panel. If you're upgrading, run `php please resrv:settings:migrate` to move your values across. See [Migrating from a published config](#migrating-from-a-published-config) and the [upgrade guide](/upgrading).
:::

## Settings reference

**Resrv → Settings** has five tabs: **General**, **Engine**, **Checkout**, **Emails** and **Currency**.

### General

Business information used in the reservation emails.

| Field | Default | Description |
|---|---|---|
| Business name | `Resrv` | Your business name. |
| Business address | `Somestreet 8` | Street address. |
| ZIP & City | `00000 City` | ZIP code and city. |
| Country | `Greece` | Country. |
| Phone | `+30 0000 000000` | Contact phone. |
| Email | `resrv@resrv.app` | Contact email. |
| Logo | *(empty)* | Leave empty to use your business name, or enter an **absolute URL** (including `https://`) to an image. |

:::tip[The Logo field now works]
In v6 the email header shows the Logo image (an absolute `https://…` URL) with no template changes. See [Emails](/emails).
:::

### Engine

| Field | Default | Description |
|---|---|---|
| Enable time | `false` | Require a pick-up and drop-off time for each reservation. *Not yet implemented in the frontend.* |
| Enable affiliates | `true` | Enables the [affiliate system](/affiliates) and the **Affiliates** nav item. |
| Enable cutoff rules | `false` | Enables per-entry [cutoff times](/cutoff) based on starting times and schedules. |
| Enable activity log | `false` | Records availability and reservation status changes in the [Activity Log](/activity-log), and shows the **Activity Log** nav item. |
| Minimum days before | `0` | Minimum days between today and the reservation start date. Use it to block last-minute bookings. |
| Minimum reservation period (in days) | `1` | Minimum length of a reservation. |
| Maximum reservation period (in days) | `30` | Maximum length of a reservation. |
| Free cancellation (in days) | `0` | How many days before the start date the customer can cancel. Sets the cancellation label and allows self-service cancellation from the [Reservation Status](/reservation-status) page. `0` means there's no cancellation window. |
| Require full payment if free cancellation has passed | `false` | Charge the full amount if the free cancellation window has already passed at booking time. |
| Maximum quantity | `8` | Maximum quantity in one reservation. |
| Ignore quantity for prices | `false` | Track quantity without multiplying the price by it (for example, seats at a restaurant). |
| Calculate days using time | `false` | With *Enable time*, charge an extra day when the return time is after the start time. *Not yet implemented in the frontend.* |
| Decrease availability for extra time | `false` | Block the final day's availability when the return time is after the start time. |
| Admin email | *(empty)* | Comma-separated emails notified about new reservations and refunds. Leave empty to turn off admin notifications. |

:::tip[Cancellation policy is now per-rate]
**Free cancellation (in days)** and **Require full payment if free cancellation has passed** are now the fallback for rates without their own policy. Each rate can set its own free cancellation window or be non-refundable. See [Rates → Cancellation policy](/rates#cancellation-policy). Non-refundable bookings always require full payment at checkout.
:::

### Checkout

See [Checkout](/checkout) for the full checkout flow.

| Field | Default | Description |
|---|---|---|
| Default checkout form | *(none)* | Used when no entry or collection mapping matches. **Required.** |
| Collection checkout form mappings | *(none)* | Each row maps a **Collection** (handle, for example `pages`) to a **Form**. |
| Entry checkout form mappings | *(none)* | Map specific entries to forms. **Entry mappings take precedence over collection mappings.** |
| Checkout Entry | *(none)* | The entry that loads the [Livewire checkout](/checkout#checkout-component) component. **Required.** |
| Checkout Redirect Entry | *(none)* | The [checkout complete](/checkout#checkout-complete) page with the `resrv_checkout_redirect` tag. **Required.** |
| Payment type | `full` | What the customer pays online (see below). |
| Fixed amount | `50` | Shown only when **Payment type** is *Charge a fixed amount*. |
| Percentage | `20` | Percentage of the base price. Shown only when **Payment type** is *Charge a percentage of the base price*. |
| Minutes to hold | `10` | How long availability is blocked when a customer starts checkout, to prevent double bookings. |

**Payment type** options:

| Value | Charges |
|---|---|
| `full` | The whole reservation amount. |
| `everything` | The whole amount plus any options and extras. |
| `fixed` | A fixed amount. |
| `percent` | A percentage of the base price. |

#### Checkout form mappings

Resrv picks the checkout form in this order:

1. **Entry mapping**: a form mapped to that entry.
2. **Collection mapping**: a form mapped to the entry's collection.
3. **Default checkout form**.

#### Manual reservations [#manual-reservations]

These settings control how customers pay for [reservations you create in the Control Panel](/manual-reservations). There's no switch to turn the feature on. The Offline Payment Instructions also reach website bookings made with an offline method.

| Field | Default | Description |
|---|---|---|
| Payment Page Entry | *(none)* | The entry that loads the [`reservation-payment`](/payment-page) Livewire component, opened from the payment request email. It must be published, not private, and have a URL. Without it, only offline payment methods work for manual reservations. |
| Offline Payment Instructions | *(empty)* | Instructions for offline payment methods, such as your bank details. Shown as plain text at [checkout](/checkout#offline-pay-later), in the payment request email, and on the payment page of manual reservations. If empty, the checkout shows no instructions, and the payment request email and payment page tell customers to arrange payment with you and quote their booking reference. |

![Select the payment page and, optionally, the instructions shown for offline payment methods.](/img/resrv-settings-manual-reservations.webp)

Select the payment page and, optionally, the instructions shown for offline payment methods.

See [Payment page](/payment-page#setting-up-the-page) for how to build the entry. Manual reservations also need a cache store with lock support and, if you use payment deadlines, the lapsed-hold sweep. Both are covered below.

#### Scheduling the lapsed-hold sweep

A manual reservation with **Hold for a limited time** switched on gets a payment deadline. Once it passes, the payment link stops taking payments, but the reservation is only cancelled when the `resrv:cancel-lapsed-holds` command runs. Resrv doesn't schedule it for you, so add it to your app's `routes/console.php`:

```php
use Illuminate\Support\Facades\Schedule;

Schedule::command('resrv:cancel-lapsed-holds')->everyFifteenMinutes()->withoutOverlapping();
```

:::warning[REQUIRES CRON]
Scheduled commands need your server's cron to run `php artisan schedule:run` every minute. Without the sweep, a lapsed hold stays **Awaiting payment** and keeps its availability, and nobody is emailed. The Control Panel flags it with "Hold expired — will be cancelled by the next sweep".
:::

Each run cancels the lapsed holds, releases their availability and emails the customer and your admins (see [Emails](/emails#lapsed-holds) and [The lapsed-hold sweep](/manual-reservations#the-lapsed-hold-sweep)). Every fifteen minutes is only a suggestion. A longer interval just delays the cancellation and the emails.

A manual reservation without a hold is never cancelled automatically. You mark it as paid or cancel it yourself.

To see how many holds would be cancelled without changing anything, run:

```bash
php please resrv:cancel-lapsed-holds --dry-run
```

#### Cache store with lock support

Checkout and the [payment page](/payment-page) use Laravel's atomic cache locks (`Cache::lock()`) so two payment attempts for the same reservation can't create two charges. Your cache store must support locks. `file`, `database`, `redis`, `memcached`, `dynamodb` and `array` do, `apc` doesn't. Without locks, every online payment on the payment page fails and the customer sees "We could not start the payment process. Please try again or contact us for assistance." From v6.6.0, every checkout fails too, because checkout locks the booking from its first step.

If you run more than one app server, use a shared store (`redis`, `database` or `memcached`).

The **Create reservation** page also uses a lock when your store supports one, so a double-clicked submit can't book twice.

### Emails

This tab sets the recipients, sender, subject and template for each email event, with optional overrides per checkout form. It also turns on abandoned reservation emails. See [Emails](/emails) for the details.

| Field | Default | Description |
|---|---|---|
| Enable abandoned reservation emails | `false` | The `resrv:send-abandoned-emails` command sends recovery emails to customers with expired reservations. |
| Delay (in days) | `1` | Days after a reservation expires before the email goes out (`1` = next day). |

:::tip[Choosing a template]
The **Template** dropdown lists the available templates. To add your own, publish the email views (`--tag=resrv-emails`) and add a Blade file to `resources/views/vendor/statamic-resrv/email/reservations/`. See [Emails](/emails).
:::

### Currency

| Field | Default | Description |
|---|---|---|
| Currency name | `Euro` | Display name. |
| Currency ISO code | `EUR` | ISO code. |
| Currency symbol | `€` | Symbol shown in prices. |
| Currency delimiter | `,` | Thousands/decimal delimiter. |

## Developer config

These keys live in `config/resrv-config.php`. Publish the file with:

```bash
php artisan vendor:publish --tag=resrv-config
```

| Key | Description |
|---|---|
| `payment_gateway` | The single payment gateway class. Defaults to `StripePaymentGateway`. See [Payment gateways](/payment-gateways). |
| `payment_gateways` | Optional array of gateways the customer can choose from at checkout. See [Payment gateways](/payment-gateways). |
| `stripe_secret_key` | Stripe secret key (`RESRV_STRIPE_SECRET` env). See [Stripe](/stripe). |
| `stripe_publishable_key` | Stripe publishable key (`RESRV_STRIPE_PUBLISHABLE` env). |
| `stripe_webhook_secret` | Stripe webhook signing secret (`RESRV_STRIPE_WEBHOOK_SECRET` env). |

Keep only these keys in the file. A CP-managed key defined here is ignored once the Control Panel has a value for it.

## Migrating from a published config

If you're upgrading from v5, move your CP-managed settings from `config/resrv-config.php` into the Control Panel with:

```bash
php please resrv:settings:migrate
```

Add `--dry-run` to preview the changes without saving anything:

```bash
php please resrv:settings:migrate --dry-run
```

The command:

- Copies the CP-managed keys from your config into the Control Panel. It skips any key that already has a CP value, is `null`, or matches the blueprint default.
- Reports conflicts where the file and the Control Panel disagree. The CP value stays active.
- Lists keys you can delete from `config/resrv-config.php`: the CP-managed keys and the keys [removed in v6](#removed-in-v6).
- Reminds you which developer keys to keep.

Resrv runs this migration once, automatically, when you upgrade to `6.0.0`. Use the command to run it again, to preview with `--dry-run`, or if the automatic step didn't run.

:::warning[Published config file detected]
While `config/resrv-config.php` still defines CP-managed keys, the **General** tab shows a **"⚠ Published config file detected"** warning listing them. Remove those keys from the file, or run `resrv:settings:migrate`, and the warning goes away.
:::

## Removed in v6

These v5 keys no longer do anything. `resrv:settings:migrate` reports them as stale:

- `enable_advanced_availability`: replaced by the collection-scoped [Rates](/rates) system.
- `enable_connected_availabilities`: removed. Use [Rates](/rates) instead.
- `form_name`: replaced by the [checkout form mappings](#checkout-form-mappings).

These nested keys are no longer read. The migrator moves their values into the Control Panel and reports both keys as safe to delete:

- `checkout_forms`: the `default` / `collections` / `entries` mappings, now in **Resrv → Settings → Checkout**.
- `reservation_emails`: the `global` / `forms` email settings, now in **Resrv → Settings → Emails**.
