Retrieves a checkout.
The getCheckout()
function returns a Promise that resolves when the specified checkout is retrieved.
function getCheckout(_id: string): Promise<Checkout>;
Checkout ID.
import { checkout } from "@wix/ecom";
async function getCheckout(id) {
const response = await checkout.getCheckout(id);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.