> ## Documentation Index
> Fetch the complete documentation index at: https://integration.wpay.com.au/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/wpay/c50rx3S48hHhNNxb/assets/images/payment-links/generic-error.png?fit=max&auto=format&n=c50rx3S48hHhNNxb&q=85&s=09a647d14921aa36639d803d33a0e011" 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/wpay/RxgiaZJ07iWfuxu1/assets/images/payment-links/not-found.png?fit=max&auto=format&n=RxgiaZJ07iWfuxu1&q=85&s=19846f472bc584014ddb933c00578809" 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/wpay/RxgiaZJ07iWfuxu1/assets/images/payment-links/redirecting.png?fit=max&auto=format&n=RxgiaZJ07iWfuxu1&q=85&s=4662cf250ba384482d00a5ef8c6d22a9" 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/wpay/RxgiaZJ07iWfuxu1/assets/images/payment-links/payment-successful.png?fit=max&auto=format&n=RxgiaZJ07iWfuxu1&q=85&s=e7a450ddffac0a92d33fc393b74be55c" 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/wpay/c50rx3S48hHhNNxb/assets/images/payment-links/expired.png?fit=max&auto=format&n=c50rx3S48hHhNNxb&q=85&s=5ee0288b318a935d56d621be325e334b" alt="Expired" width="2560" height="1618" data-path="assets/images/payment-links/expired.png" />
</Frame>
