I am trying to return the items in my order to send it for payment as such:
$orderItems = $this->getItems();
But the $orderItems
is always null. I tried this with an offsite gateway, onsite gateway, it is always null. I am using it in Craft's Commerce 2.