I need to get the guest billing address on the success.phml so I can send to a third party app.
I have managed to use this:
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$orderData = $objectManager->create('Magento\Sales\Model\Order')->loadByIncrementId($block->getOrderId());
echo "<pre>";
print_r($orderData->getData());
echo "</pre>";
echo $orderData->getData('customer_email');
But the billing address is blank - so I assume that the addresses from the code above is only for registered customers or customers that have registered an address at least.
So my question is how do I get the guest address/data?
It must be able to be pulled as its on the page "checkout/#payment"
My PHP knowledge is pretty basic when it comes to OOP.
Thanks in advance