private function getExtensionAttributes(InfoInterface $payment) {
        $extensionAttributes = $payment->getExtensionAttributes();

        if (null === $extensionAttributes) {
            $extensionAttributes = $this->paymentExtensionFactory->create();
            $payment->setExtensionAttributes($extensionAttributes);
        }

        return $extensionAttributes;
    }