# Razorpay

> Check out from Lexsis pages with Razorpay Magic Checkout

Canonical URL: https://0.0.0.0:3005/integrations/razorpay

Lexsis pages can check out with Razorpay Magic Checkout instead of native
Shopify checkout.

## What you need

- A store that sells in INR. Other currencies hide the Razorpay option.
- Verified Razorpay API keys and a webhook secret.
- The `write_orders` Shopify scope. Existing installs are asked to re-consent.

## Setup

Open **Storefront → Settings → Checkout** in the Lexsis app, choose Razorpay,
and enter your keys and webhook secret.

## What data flows

- Prepaid and cash-on-delivery payments each create exactly one Shopify order
  per paid Razorpay order.
- Cart coupons apply to the Razorpay order.
- Orders keep the Lexsis landing page and referrer.

## Fallback

If anything fails before payment, the shopper goes to native Shopify checkout.
A shopper who has paid never sees a failure.

## Related

- [Cart](/cart)
- [Tracking](/tracking)
