This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Marks an offline order as paid.
The markAsPaid()
function returns a Promise that resolves when the offline order is successfully marked as paid.
The entire order is marked as paid, even if the order's payments are recurring.
Note: Marking separate payment cycles as paid is not yet supported. 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:
markAsPaid()
function is supported for offline orders only.You can only call this method when authenticated as a Wix app or Wix user identity.
Order ID.