# Payment Window

When an invoice is created, a payment window is generated – a dedicated web page shown to the payer and accessible through a unique URL.

Upon the first opening, the payment window displays the following payment details:

* **Invoice ID**
* **Countdown timer** (defined during invoice creation)
* **Amount in USDT ($)**
* **Status**
* **Payment currency selection**

<figure><img src="/files/CtEbsLdAlQpXuzkxPLPJ" alt="" width="563"><figcaption></figcaption></figure>

Before making a payment in the payment window, the payer must select the currency in which the invoice will be paid. After selecting the payment currency, additional details appear in the payment window:

* **Payment method**
  * **Cryptocurrency**
  * **Network**
* **The address to which the payer must send the funds**
* **Copy-address button**
* **Amount in the selected cryptocurrency**
* **QR code for scanning with a mobile cryptowallet**
* **«Cancel payment» button**

<figure><img src="/files/FFYSSAPcDtwyN7Ry5zIM" alt="" width="482"><figcaption></figcaption></figure>

When an invoice is created in goodPayments, the payment amount is specified in USDT. However, the payer can also choose to pay in TRX (if TRX was enabled as an accepted currency when the invoice was created). If the payer selects TRX as the payment currency, the **«Amount to pay»** field displays the exact TRX amount calculated according to the current TRX/USDT exchange rate.

<figure><img src="/files/aLvq19ILyNhPrZwlTC7W" alt="" width="488"><figcaption></figcaption></figure>

After a successful payment, the payment window automatically updates and displays the current status of the operation to the payer.

<figure><img src="/files/2GsqWmiI9xD4w4HUB7jT" alt="" width="532"><figcaption></figcaption></figure>

If the invoice is not paid before it expires, the payment window will update and notify the payer that the invoice has expired.

<figure><img src="/files/BDluO3i177l421z9WMd6" alt="" width="530"><figcaption></figcaption></figure>

If the invoice is cancelled by the merchant for any reason, the payment window will show that the invoice has been cancelled.

<figure><img src="/files/oUgFgimPRsb7p4QBQd2F" alt="" width="523"><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://goodpayments.gitbook.io/docs/user-guide/payment-window.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
