This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
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.When creating a non-free offline order:
"PENDING"
if the start date is in the future. Otherwise, the status is set to "ACTIVE"
.
The order's last payment status is set to "UNPAID"
or "PAID"
.When creating a free offline order:
"PENDING"
if the start date is in the future. Otherwise, the status is set to "ACTIVE"
."NOT_APPLICABLE"
.This function requires elevated permissions and runs only on the backend and on dashboard pages.
ID of the plan being ordered. See Plans for more information about plan IDs
ID of the member ordering the plan.
Options for creating an offline order.