1// The donation flow over REST — the twin of app/wix/donations/donate.ts. Same exports, same2// signatures; the bodies and result readers come from donations-core (the SAME file the SDK3// transport uses). A donation is an eCom cart with one catalog line; the hosted checkout takes4// payment and donor details. In Cart V2 the cart IS the checkout — its id is the id the redirect5// session takes, so there is one route and no separate Create Checkout call. Never create the6// order yourself, never hand-build a checkout URL.7// docs: https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart-v2/create-cart.md8// docs: https://dev.wix.com/docs/api-reference/business-management/headless/redirects/create-redirect-session.md9// docs: https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/orders/get-order.md10import { wixRequest } from "../../shared/rest/client.js";11import {