# Hosted pages

Txn provides hosted pages for invoices, channels, and payment links. The URL for each hosted page is returned in the `hostedPageUrl` parameter in API responses.

## **Example: Invoice Hosted Page**

{% code overflow="wrap" %}

```
https://sandbox.txn.io/redirect?invoice_id=1e331bac-ca3a-4480-9c66-ae2536f04b81&request_type=invoice_hosted_page&zone=ca
```

{% endcode %}

## **Customizing the Hosted Page Appearance**

You can use the following URL parameters to control the appearance of the hosted page:

1. **`showQrCode`** (`true` / `false`)
   * If `true`, the QR code is displayed by default, so end-users don’t need to click to expand it
   * By default, users must click a button to view the QR code
2. **`hideLangSwitcher`** (`true` / `false`)
   * If `true`, the language switcher is hidden
   * By default, the language switcher is always visible
3. **`lang`** (`en`, `pt`, `fr`, `tr`, `es`, `jp`, `ar`, `cn`, `vn`, `ms`)
   * Specifies the language of the hosted page
   * By default, the platform detects the end-user's browser locale and applies the appropriate translation. If the locale isn't supported, English is used
   * `en` - English
   * `pt` - Portugal
   * `fr` - French
   * `tr` - Turkish
   * `es` - Spanish
   * `jp` - Japanese
   * `ar` - Arabic
   * `cn` - Chinese (Simplified)
   * `vn` - Vietnamese
   * `ms` - Malay (Bahasa Melayu)

### **Example: Customized Hosted Page**

{% code overflow="wrap" %}

```
https://sandbox.txn.io/redirect?invoice_id=1e331bac-ca3a-4480-9c66-ae2536f04b81&request_type=invoice_hosted_page&zone=ca&showQrCode=true&hideLangSwitcher=on&lang=en
```

{% endcode %}
