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

# Payment link expiration and statuses

Your customer uses the payment link to create the payment. If the transaction is successful, the customer
is redirected to the `return_url` you specified or an internal success screen otherwise.

## Statuses

The page displays different content based on the status of the payment link.

### Generic error

Either the payment link id provided is invalid or some other error occurred when loading the page (for example network error).

<Frame>
  <img src="https://mintcdn.com/anglpay/jAXWh018x28shKDi/assets/images/payment-links/generic-error.png?fit=max&auto=format&n=jAXWh018x28shKDi&q=85&s=fa5042ca5c19c6a0ed9d4431e797f056" alt="Generic Error" width="2560" height="1618" data-path="assets/images/payment-links/generic-error.png" />
</Frame>

### Payment link not found

The payment link id provided is valid but the resource associated with it could not be found.

<Frame>
  <img src="https://mintcdn.com/anglpay/xCeAKjR1rioilTOg/assets/images/payment-links/not-found.png?fit=max&auto=format&n=xCeAKjR1rioilTOg&q=85&s=a9c31b5e8d8eab68029f803dde24e0f7" alt="Not Found" width="2560" height="1618" data-path="assets/images/payment-links/not-found.png" />
</Frame>

### Redirecting

Embed has successfully processed the transaction and the page is redirecting the customer to the `return_url` or the internal success screen.

<Frame>
  <img src="https://mintcdn.com/anglpay/xCeAKjR1rioilTOg/assets/images/payment-links/redirecting.png?fit=max&auto=format&n=xCeAKjR1rioilTOg&q=85&s=ff4e002cea77130924e0f68c13a1dbe0" alt="Redirecting" width="2560" height="1618" data-path="assets/images/payment-links/redirecting.png" />
</Frame>

### Payment successful (internal)

The payment was successful and a `return_url` was not specified. Also displays if the payment link has already been used.

<Frame>
  <img src="https://mintcdn.com/anglpay/xCeAKjR1rioilTOg/assets/images/payment-links/payment-successful.png?fit=max&auto=format&n=xCeAKjR1rioilTOg&q=85&s=54cb74daf65dc80b93ff8e012affd567" alt="Payment Successful" width="2560" height="1618" data-path="assets/images/payment-links/payment-successful.png" />
</Frame>

## Expiration

By default, payment link expires in 24 hours. This can be configured separately by setting the `expires_at` field in the API.

Once expired, a payment link no longer loads and instead shows the following screen.

<Frame>
  <img src="https://mintcdn.com/anglpay/jAXWh018x28shKDi/assets/images/payment-links/expired.png?fit=max&auto=format&n=jAXWh018x28shKDi&q=85&s=addbb994ae946b96b94ac874765e01fa" alt="Expired" width="2560" height="1618" data-path="assets/images/payment-links/expired.png" />
</Frame>
