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

# Payment link expiration and statuses

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

## Statuses

The page will display 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 (e.g. network error).

<Frame>
  <img src="https://mintlify.s3.us-west-1.amazonaws.com/mattilda/assets/images/payment-links/generic-error.png" alt="Generic Error" />
</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://mintlify.s3.us-west-1.amazonaws.com/mattilda/assets/images/payment-links/not-found.png" alt="Not Found" />
</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://mintlify.s3.us-west-1.amazonaws.com/mattilda/assets/images/payment-links/redirecting.png" alt="Redirecting" />
</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://mintlify.s3.us-west-1.amazonaws.com/mattilda/assets/images/payment-links/payment-successful.png" alt="Payment Successful" />
</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 will no longer load and instead show the following screen.

<Frame>
  <img src="https://mintlify.s3.us-west-1.amazonaws.com/mattilda/assets/images/payment-links/expired.png" alt="Expired" />
</Frame>
