I need to get checkout form data before placing order, but I am only getting default shipping address below is the code snippet I tried:
\Magento\Checkout\Model\Session
$customerId = $this->_customerSession->getCustomer()->getId();
$customerInfo = $this->customerFactory->create()->load($customerId);
$customerAddress = $customerInfo->getDefaultShippiingAddress();
getshipiingAddress()
method returning null
I want to get form data for logged in and guest customer both.