Marks an offline order as paid.
Note: Marking separate payment cycles as paid is not yet supported. The entire order will be marked as paid. Subsequent offline payments do trigger events and emails, but are not registered as additional offline payments.
Marking an offline order as paid causes the following changes:
lastPaymentStatus
changes to "PAID"
."PENDING"
or "ACTIVE"
, depending on the order's startDate
.An error occurs if you attempt to:
function markAsPaid(_id: string): Promise<void>;
Order ID.
import { orders } from "@wix/pricing-plans";
async function markAsPaid(id) {
const response = await orders.markAsPaid(id);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.