1. Install Dependencies
npm install @sortsmith/node
2. Add Environment Variables
SORTSMITH_ACCESS_TOKEN=xxx SORTSMITH_RETURN_URL=https://example.com/complete?order_id={ORDER_ID}
3. Mount the Checkout Route
import { Checkout } from "@sortsmith/node"; export const GET = Checkout({ accessToken: process.env.SORTSMITH_ACCESS_TOKEN, returnUrl: process.env.SORTSMITH_RETURN_URL });