I had a custom WooCommerce Payment Gateway where I used
/** * Process the payment and return the result. * * @param int $order_id Order ID. * @return array */ pub