> ## Documentation Index
> Fetch the complete documentation index at: https://api.dlxpay.datalex.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/datalex/bxX4rTH8pE5lFZy3/assets/images/payment-links/generic-error.png?fit=max&auto=format&n=bxX4rTH8pE5lFZy3&q=85&s=5e18b8e86aa887a39cc0a40f5c238be9" 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/datalex/8vxdI7k337xXLFuH/assets/images/payment-links/not-found.png?fit=max&auto=format&n=8vxdI7k337xXLFuH&q=85&s=c1b93021beb3030bc6143faa04252ea5" 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/datalex/8vxdI7k337xXLFuH/assets/images/payment-links/redirecting.png?fit=max&auto=format&n=8vxdI7k337xXLFuH&q=85&s=899cebea3cb12a17e1eddafbece72441" 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/datalex/8vxdI7k337xXLFuH/assets/images/payment-links/payment-successful.png?fit=max&auto=format&n=8vxdI7k337xXLFuH&q=85&s=4944b2fb78f1041406e716706ff7a3e7" 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/datalex/bxX4rTH8pE5lFZy3/assets/images/payment-links/expired.png?fit=max&auto=format&n=bxX4rTH8pE5lFZy3&q=85&s=52074fdd73b6e7b042591e4d459b641c" alt="Expired" width="2560" height="1618" data-path="assets/images/payment-links/expired.png" />
</Frame>
