Skip to main content
You have a checkoutUrl. Now send the customer there to pay.

The Simple Way (Redirect)

Just redirect the browser:
// You got this from Step 1 (Create Session)
const checkoutUrl = "https://checkout.ozura.io/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 HappensCustomer Goes To
Payment succeedsYour successUrl
Payment failsYour errorUrl
Customer cancelsYour cancelUrl
Session expiresYour 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.
Set cancelUrl to your cart or product page so customers can easily try again. See Understanding the Three URLs for best practices.

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 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.