Most of the time this should mark an order as 'processing' so that admin can process/post the items.
If the cart contains only downloadable items then the order is 'completed' since the admin needs to take no action.
Stock levels are reduced at this point.
Sales are also recorded for products.
Finally, record the date of payment.
Order must exist.
public payment_complete ( string $transaction_id = '' ) : boolean | ||
$transaction_id | string | Optional transaction id to store in post meta. |
return | boolean | success |