I have created a customer multi-selected attribute but I am not able to get its value on checkout can you please guide me on how can I get it. I try these two solutions but it not work.
$customer = $customerSession->getCustomer(); echo $customer->getResource()->getAttribute('payment_method')->getFrontend()->getValue($customer);
$customer = $customerSession->getCustomer(); $paymentValue = $customer->getCustomAttributeText('payment_method')->getValue();
Thanks in advance