> ## Documentation Index
> Fetch the complete documentation index at: https://docs.byzly.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/flexxbuy/39tfKGesfNHyX7HE/assets/images/payment-links/generic-error.png?fit=max&auto=format&n=39tfKGesfNHyX7HE&q=85&s=2e37998264f2833e3c7241c83f649522" 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/flexxbuy/AxFxa3X7-38b2HYz/assets/images/payment-links/not-found.png?fit=max&auto=format&n=AxFxa3X7-38b2HYz&q=85&s=ab6080572e2a0cf0477a5856285b0331" 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/flexxbuy/AxFxa3X7-38b2HYz/assets/images/payment-links/redirecting.png?fit=max&auto=format&n=AxFxa3X7-38b2HYz&q=85&s=67a233511e70dc456cbd0160b4fad8a2" 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/flexxbuy/AxFxa3X7-38b2HYz/assets/images/payment-links/payment-successful.png?fit=max&auto=format&n=AxFxa3X7-38b2HYz&q=85&s=05861ff2940eee8cb2de93fdbcfb20df" 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/flexxbuy/39tfKGesfNHyX7HE/assets/images/payment-links/expired.png?fit=max&auto=format&n=39tfKGesfNHyX7HE&q=85&s=882ecb401e74251bbdeb336c4f297de7" alt="Expired" width="2560" height="1618" data-path="assets/images/payment-links/expired.png" />
</Frame>
