> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wizlopay.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/smarteremr-docs-mintlify/vZRVQOGZqEOJn74d/assets/images/payment-links/generic-error.png?fit=max&auto=format&n=vZRVQOGZqEOJn74d&q=85&s=361cc7fbcc43019c705039fe6992ba34" 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/smarteremr-docs-mintlify/-XjVFPHJa-H0YsNz/assets/images/payment-links/not-found.png?fit=max&auto=format&n=-XjVFPHJa-H0YsNz&q=85&s=306b8ef9522eca8cb35df8af26b047a2" 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/smarteremr-docs-mintlify/-XjVFPHJa-H0YsNz/assets/images/payment-links/redirecting.png?fit=max&auto=format&n=-XjVFPHJa-H0YsNz&q=85&s=9a2021ae08d411435c8b186c55268f3e" 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/smarteremr-docs-mintlify/-XjVFPHJa-H0YsNz/assets/images/payment-links/payment-successful.png?fit=max&auto=format&n=-XjVFPHJa-H0YsNz&q=85&s=97fdcf823fc2e6c18597c305d69c57d4" 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/smarteremr-docs-mintlify/vZRVQOGZqEOJn74d/assets/images/payment-links/expired.png?fit=max&auto=format&n=vZRVQOGZqEOJn74d&q=85&s=55729c9d2459ad67afa20900bb44a02c" alt="Expired" width="2560" height="1618" data-path="assets/images/payment-links/expired.png" />
</Frame>
