# Auravik Payment Setup Notes

## What is already built

- A premium multi-page website
- Product cards with add-to-checkout buttons
- Cart storage in the browser
- A checkout page with customer details and order summary
- `Stripe` payment-link launch support
- `Razorpay` frontend support with server-order flow hooks
- WhatsApp order fallback

## Fastest payment launch

Use Stripe Payment Links if you want the quickest working payment button.

1. Create a payment link in Stripe.
2. Open [payment-config.js](/Users/gauravverma/Documents/New%20project/payment-config.js).
3. Replace `REPLACE_WITH_YOUR_STRIPE_PAYMENT_LINK` with your real live Stripe link.
4. Open `checkout.html` and test the `Pay with Stripe` button.

## Full Razorpay integration

The checkout page already loads Razorpay Checkout on the frontend.

To make it live:

1. Add your Razorpay key ID in `payment-config.js`.
2. Create a server endpoint that creates Razorpay orders.
3. Add that endpoint URL to `razorpay.orderApiUrl` in `payment-config.js`.
4. Return a JSON payload that includes at least:
   - `id`
   - `amount`
   - `currency`
5. Test the `Pay with Razorpay` button on `checkout.html`.

## Important note

Razorpay needs server-side order creation for standard web checkout. Stripe Payment Links are easier when you want to launch fast without building backend payment logic first.
