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

# Redirect Customer to Checkout

> Send your customer to the secure Ozura checkout page to complete payment

You have a `checkoutUrl`. Now send the customer there to pay.

## The Simple Way (Redirect)

Just redirect the browser:

```javascript theme={null}
// You got this from Step 1 (Create Session)
const checkoutUrl = "https://checkout.ozura.com/checkout/session_xxxxxxxxxxxxxx";

// Send customer to checkout
window.location.href = checkoutUrl;
```

That's it! Customer goes to our secure payment page, enters their card, and gets sent back to your site.

## What the Customer Sees

1. **Your store name** and **amount** at the top
2. **Card entry form** (secure, PCI compliant)
3. **Pay Now button**
4. **Cancel link** (returns to your `cancelUrl`)

## After Payment

| What Happens     | Customer Goes To  |
| :--------------- | :---------------- |
| Payment succeeds | Your `successUrl` |
| Payment fails    | Your `errorUrl`   |
| Customer cancels | Your `cancelUrl`  |
| Session expires  | Your `cancelUrl`  |

## Session Expires in 30 Minutes

If customer doesn't complete payment within 30 minutes:

1. **Expiration page appears** – Customer sees a message explaining the session has expired
2. **"Go Back" button shown** – Customer can click to return to your store
3. **Redirects to cancelUrl** – When they click the button, they're sent to your `cancelUrl`

The customer is **not** immediately redirected – they see an explanation first and choose when to go back.

<Tip>
  Set `cancelUrl` to your cart or product page so customers can easily try again. See [Understanding the Three URLs](/guides/payments/checkout/create-session#understanding-the-three-urls) for best practices.
</Tip>

## Other Display Options

Don't want a full-page redirect? You can open checkout as a popup, embed it in an iframe, or open a new tab. See [Integration Modes](/guides/payments/checkout/integration-modes) for details on each option.

## Next Step

After the customer pays (or cancels), they come back to your site. Learn how to [handle the result](/guides/payments/checkout/handle-result).
