Payment for Delivery Order from API
Tags:
Starting from API V7Preview5, it became possible to pay for a delivery order directly from the plugin without entering the checkout screen.
A delivery order can be paid by calling the method
PayOrder.
At the same time, the cost of the delivery order must be fully covered by payments.
In case of courier delivery that has not been dispatched, this method will automatically change the delivery status to “Waiting for Dispatch”.
If it is a pickup, the payment for the delivery order from the plugin will automatically close such a delivery.
The transition of courier delivery from “Delivered” status to “Closed” status will be implemented later.