Gateway/Response/VaultDetailsHandler.php
private function getExtensionAttributes(InfoInterface $payment) {
        $extensionAttributes = $payment->getExtensionAttributes();

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

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

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

        return $extensionAttributes;
    }
private function getExtensionAttributes ( InfoInterface $ payment ) { $ extensionAttributes = $ payment -> getExtensionAttributes ( ) ; if ( null === $ extensionAttributes ) { $ extensionAttributes = $ this -> paymentExtensionFactory -> create ( ) ; $ payment -> setExtensionAttributes ( $ extensionAttributes ) ; } return $ extensionAttributes ; }
Get payment extension attributes
@param InfoInterface $payment
@return OrderPaymentExtensionInterface
Get payment extension attributes