> ## Documentation Index
> Fetch the complete documentation index at: https://gr4vy.radial-commerce.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/radial/1ZmWjKVUbwTQsyfb/assets/images/payment-links/generic-error.png?fit=max&auto=format&n=1ZmWjKVUbwTQsyfb&q=85&s=9ad307530788e853195f863280401d0c" 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/radial/NreXh1vMOtCHcxs2/assets/images/payment-links/not-found.png?fit=max&auto=format&n=NreXh1vMOtCHcxs2&q=85&s=455ae3e29a910ee4e39c0d53587608e6" 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/radial/NreXh1vMOtCHcxs2/assets/images/payment-links/redirecting.png?fit=max&auto=format&n=NreXh1vMOtCHcxs2&q=85&s=e3ba7012eb3efa6cea01216259e86b28" 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/radial/NreXh1vMOtCHcxs2/assets/images/payment-links/payment-successful.png?fit=max&auto=format&n=NreXh1vMOtCHcxs2&q=85&s=fcc26477f365bf952d835e2daccbdbeb" 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/radial/1ZmWjKVUbwTQsyfb/assets/images/payment-links/expired.png?fit=max&auto=format&n=1ZmWjKVUbwTQsyfb&q=85&s=a0743ca3915d094f4e9e664610caf74d" alt="Expired" width="2560" height="1618" data-path="assets/images/payment-links/expired.png" />
</Frame>
