Marks a checkout as completed - checkout.complete
boolean is set to true
.
The markCheckoutAsCompleted()
function returns a Promise that resolves when the specified checkout is marked as completed.
function markCheckoutAsCompleted(_id: string): Promise<void>;
Checkout ID.
import { checkout } from "@wix/ecom";
async function markCheckoutAsCompleted(id) {
const response = await checkout.markCheckoutAsCompleted(id);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.