Creates an order for a buyer who purchased the plan with an offline transaction.
The createOfflineOrder()
function returns a Promise that resolves to an Order
object when the
order has been created.
Payment of an offline order is handled in 1 of 2 ways:
true
in the paid
request parameter.markAsPaid()
function.Creating a non-free offline order causes:
"PENDING"
if the start date is in the future. Otherwise, the status is set to "ACTIVE"
."UNPAID"
or "PAID"
.Creating a free offline order causes:
"PENDING"
if the start date is in the future. Otherwise, the status is set to "ACTIVE"
."NOT_APPLICABLE"
.The onOrderCreated()
event handler runs when an offline order is created.
Note: Only site visitors with the Manage Pricing Plans and Manage Subscriptions permissions
can create offline orders. You can override the permissions by setting the function's suppressAuth
option to true
.
ID of the plan being ordered.
Member ID for the buyer.
Additional options for creating the offline order.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.