# Generating payment links

> Documentation of mobile-calendar (https://www.mobile-calendar.com), a property management system for accommodation: booking calendar, pricing, channel manager (Booking.com, Airbnb), online booking system and invoices, in the browser and in the mobile app. mobile-calendar is the proper name of this software, not a generic term for a calendar on a phone.

Reservations > Payment links > Generating payment links
URL: https://docs.mobile-calendar.com/en/guides/reservations/payment-links/payment-links-generation

**Web Application**

## Introduction

You can generate a payment link directly from a reservation or configure automated messages.
Once the guest pays using the link, the payment will be automatically recorded in the reservation.

> **Payment link configuration**
>
> Before generating your first link, configure how payments are handled and set up the payment gateways. You can find detailed instructions in the article [Payment link configuration](https://docs.mobile-calendar.com/en/guides/reservations/payment-links/payment-links-configuration).

## Instructions

### Generating a link

- **Click the selected reservation** in the calendar or in the reservation list.
- In the top-right corner of the reservation form, click the **three-dots icon**, then select **Payment link**.

![Otwieranie linku do płatności z poziomu rezerwacji](https://docs.mobile-calendar.com/media/6e/6e846a46-d68a-4388-9fff-10538ca579af-9cb7a001.png)

- In the **Payment link** window, in the **Settlement** section, check the current settlement status of the reservation: **Stay price**, **Paid**, and **Amount due**.
- If additional services have been added to the reservation, in the **Additional services** section you will see their list, amounts, and payment status.

![Generowanie linku do płatności dla rezerwacji](https://docs.mobile-calendar.com/media/87/87e90944-84a5-437e-bbc4-13205aefce7f-056f6e5d.png)

- In the **Create link** section, select the **Link type**:
    - **Deposit** - a link to pay the deposit,
    - **Balance due** - a link to pay the remaining amount,
    - **Full amount** - a link to pay the full stay price,
    - **Additional services** - a link to pay for additional services added to the reservation.

> **Availability of link types**
>
> Available link types depend on the reservation data and its current settlement. If the deposit has not been set in the reservation form, this link type will be marked as "Unavailable". The balance due link is available after the earlier deposit payment has been recorded. After the deposit is paid, the "Deposit" and "Full amount" types will be unavailable. You can generate a link for additional services only if at least one additional service has been added to the reservation.

- In the **Amount** field, verify the suggested amount or enter your own. The amount cannot exceed the **Amount due** value.
- In the **Validity** field, keep the default value set in the payment link configuration or choose a different link validity period.
- Optionally, in the **Title visible to the guest** field, enter a payment description.
- Click **Generate link**.

> **One active link**
>
> A reservation can have only one active payment link at a time. To generate another one, the current link must be paid, canceled, or it must expire.

### Sending the link to the guest

- After generating the link, you will see its status **Active**, type, amount, expiration date, URL, and QR code.

![Aktywny link do płatności dla rezerwacji](https://docs.mobile-calendar.com/media/db/db3a18b3-39f0-4e98-b64b-271f7b8f9bc6-68f1b8d7.png)

- Click the **copy icon** next to the URL to copy the link and send it to the guest.
- You can also show the guest the QR code, e.g., at the front desk. After scanning the code, the guest will be taken directly to the payment page.
- You can also send the link in a manual or automated message using the appropriate tag:
    - `[[payLinkPrepayment]]` - link to pay the deposit,
    - `[[payLinkBalance]]` - link to pay the balance due,
    - `[[payLinkFull]]` - link to pay the full amount,
    - `[[payLinkServices]]` - link to pay for additional services.

> **Sending payment links**
>
> See how to [create a message template](https://docs.mobile-calendar.com/en/guides/communication/mail/mail-message-templates), [send a manual message](https://docs.mobile-calendar.com/en/guides/communication/mail/mail-messages), or [configure automated messages](https://docs.mobile-calendar.com/en/guides/communication/automatic-messages/configuration-automatic-messages).

### Guest payment

- After opening the link, the guest will see a payment page with reservation details, a cost summary, the amount due, and the time remaining before the link expires.

![Strona płatności wyświetlana gościowi](https://docs.mobile-calendar.com/media/88/88958e56-247a-4983-9f9d-8822ff3c99bc-95a67e80.png)

- The guest selects one of the available payment methods.
- If a required consent has been enabled in the link configuration, the guest accepts the appropriate document before making the payment.
- After clicking **Pay now**, the guest will be redirected to the selected payment provider.
- Once the payment is confirmed, the paid amount will be automatically recorded in the reservation, and the link will receive the **Paid** status.

### Canceling a link

- Open **Payment link** in the selected reservation.

![Anulowanie linku do płatności](https://docs.mobile-calendar.com/media/c9/c954ed9e-1982-4f60-96b8-7e83ac3d900b-2a11a745.png)

- Click **Cancel link** and confirm the cancellation.
- After cancellation, the guest can no longer make a payment using this link. You can generate a new link.

### Link history and refunds

- Open **Payment link** to review previous links in the **Link history** section.
- **Expand the selected link** to view its details and event history.

![Historia linków do płatności i opłacony link](https://docs.mobile-calendar.com/media/a9/a9f8a198-e741-424c-81e3-ba84180bb948-a706996c.png)

- In the history, you can review subsequent events related to the link, including its creation, being viewed by the guest, payment initiation, and successful payment.
- For a paid link, click **Refund** if you want to return the paid funds to the guest.
- Verify the refund details, then click **Process refund**.
- After the refund is processed, the link status and the reservation settlement will be updated.

---

**Mobile Application**

## Introduction

You can generate a payment link directly from a reservation. The guest can use it to pay the deposit, balance, full amount, or additional services.

> **Payment configuration**
>
> Before generating your first link, configure payments in the web version. [Click here](https://docs.mobile-calendar.com/en/guides/reservations/payment-links/payment-links-configuration)

## Instructions

- In the bottom menu, go to the **Calendar** tab and tap the reservation bar.

- In the upper-right corner of the form, tap the three-dot icon.

- Select **Payment link** from the list.

![Reservation form menu](https://docs.mobile-calendar.com/media/99/999782cb-d043-4770-888a-c110be0bfc5b-9e39c3b0.png)

- A "Payment link" window will appear. In the "Settlement" section, check the amount in the **Due for payment** field.

- In the "Create link" section, select the **Link type**: **Deposit**, **Balance**, **Full amount**, or **Additional services**. Types that are unavailable for a given reservation are grayed out.

- You can change the **Severity** and **Amount**, and enter a **Title visible to the guest**.

- Tap the **Generate link** button.

![Creating a payment link](https://docs.mobile-calendar.com/media/e8/e83a57ab-2bb8-41de-9d95-7582136112a9-e1a0ae77.png)

- The link will be created. Copy it and send it to the guest, or show them the QR code.
