> ## Documentation Index
> Fetch the complete documentation index at: https://docs.clinkbill.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom Domain

> Configure your own subdomain for Clink Hosted Checkout.

Use a subdomain such as `pay.example.com` for your [Hosted Checkout](https://docs.clinkbill.com/build-integration.md) pages. Clink manages certificate issuance and setup; you add the DNS records shown in your merchant dashboard.

## Before you start

* Make sure custom domains are enabled for your merchant account. If you cannot find the Custom Domain page, contact Clink support.
* Use a dedicated subdomain that you control and can manage at your DNS provider. Do not reuse a hostname serving another website.
* Enter only the hostname, such as `pay.example.com`, without `https://`, a port, or a path. Do not enter an IP address or wildcard.
* Each merchant can have one active or in-progress domain configuration. A domain being disabled occupies that slot until cleanup finishes.

## 1. Request your domain

Open the Custom Domain page for the intended merchant, enter your subdomain, and submit the application.

Clink prepares a certificate-validation CNAME record. If it is not available yet, wait and refresh the page. Do not submit another application to generate the record.

## 2. Add the certificate-validation record

At the DNS provider that manages your domain, create the first CNAME using the exact name and value shown in the dashboard.

| DNS field | What to enter |
| - | - |
| Type | `CNAME` |
| Name / Host | The certificate-validation record name shown in the dashboard |
| Target / Value | The certificate-validation value shown in the dashboard |
| TTL | Your provider's default value |

For example, if the dashboard shows `_abc123.pay.example.com` and your DNS provider automatically appends `example.com`, enter `_abc123.pay` in the Name field. If it requires a full name, enter the full record name. Do not duplicate the domain suffix or remove the leading underscore.

> [!WARNING]
>
> Keep this record after setup. Clink needs it for automatic certificate renewal. Do not copy example names or another merchant's values.

Save the record, then use the dashboard's configuration check. DNS propagation and certificate issuance take time. If the status has not changed, wait and check again.

## 3. Add the checkout traffic record

Once the certificates and connection are ready, the dashboard displays the second CNAME. This record directs checkout traffic to Clink.

| DNS field | What to enter |
| - | - |
| Type | `CNAME` |
| Name / Host | Your checkout subdomain, such as `pay.example.com`, or `pay` if your provider appends `example.com` |
| Target / Value | The checkout CNAME target shown in the dashboard |
| TTL | Your provider's default value |

Keep the first validation record alongside this traffic record. A hostname with a CNAME must not also have a conflicting A, AAAA, or another CNAME record. Check what existing records serve before replacing them.

If your DNS provider offers proxying, use **DNS only** so that the CNAME can be checked directly. Do not enable a proxy without confirming compatibility with Clink.

> [!NOTE]
>
> Different merchants may receive the same traffic target because they share a Clink entry point. Always use the value displayed for your domain rather than copying another merchant's target. DNS configuration alone does not mean the domain is ready for HTTPS traffic.

Save the record and check the configuration again. Wait until the dashboard shows the domain as active before using it for checkout.

## 4. Verify checkout

Create a new [Checkout Session](https://docs.clinkbill.com/guides/payments/checkout_session.md) and open the returned URL. Confirm that it uses your configured hostname, loads over HTTPS without a certificate warning, and displays the intended checkout.

Continue using the Session URL returned by Clink. Do not manually replace its hostname or rewrite previously generated payment links. Test your payment and authentication flow before sharing the new checkout links with customers.

Activating a custom domain does not automatically enable Apple Pay. Confirm any additional wallet setup with Clink support.

## Understand the setup status

| Status | Meaning / action |
| - | - |
| Waiting for certificate DNS | Wait for the validation record to appear, then configure it at your DNS provider. |
| Certificate issuing | Validation DNS has been detected. Keep the record and wait for issuance. |
| Preparing connection | Certificates are issued; Clink is preparing the connection. |
| Waiting for traffic DNS | Add the second CNAME shown in the dashboard. |
| Active | Setup is complete. Keep both DNS records and investigate any DNS warning shown later. |
| Failed or expired | Review the DNS records and any displayed message, then retry or contact support. |
| Disabling | Cleanup is pending. Wait before applying for another domain. |

## Troubleshooting

* **Validation does not progress:** verify the record name, target, and DNS zone. Check for a duplicated domain suffix, a missing underscore, or an enabled DNS proxy. Allow time for propagation before checking again.
* **Traffic DNS is not detected:** use the exact target in the dashboard and remove conflicting records only after confirming they are no longer needed.
* **HTTPS fails before activation:** wait for the active status. Adding a CNAME does not finish certificate and connection setup.
* **An active domain shows a DNS warning:** check that both records still exist and match the dashboard. An active status does not guarantee that DNS has remained unchanged.
* **The domain is already in use:** choose another hostname or contact support. Disabling a domain does not automatically release it for another merchant.

## Disable or replace a domain

Use the disable action in the dashboard and review the confirmation before proceeding. New sessions stop selecting the domain through this configuration, but cleanup is delayed to protect existing checkout links and authentication redirects.

The dashboard's cleanup time is the reference for the protection period. Cleanup also requires background processing, so the domain is not necessarily removed at that exact time. Do not remove DNS records while customers may still need existing links.

After cleanup, the configuration disappears from the current-domain view. You can then apply for a different available domain or reapply for the original domain under the same merchant. There is no immediate cancellation of a pending application; disabling it also follows the cleanup process.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.