private function getGatewayFieldName($defaultName, $gateway = null)
    {
        if (!$gateway) {
            if (!$this->gateway) {
                return false;
            }

            return $this->getGatewayFieldName($defaultName, $this->gateway);
        }

        $renameMap = $this->config()->rename;

        if (is_array($renameMap) && array_key_exists($gateway, $renameMap)) {
            $gatewayMap = $renameMap[ $gateway ];
            if (array_key_exists($defaultName, $gatewayMap)) {
                return $gatewayMap[ $defaultName ];
            }
        }

        return false;
    }
private function getGatewayFieldName($defaultName, $gateway = null)
    {
        if (!$gateway) {
            if (!$this->gateway) {
                return false;
            }

            return $this->getGatewayFieldName($defaultName, $this->gateway);
        }

        $renameMap = $this->config()->rename;

        if (is_array($renameMap) && array_key_exists($gateway, $renameMap)) {
            $gatewayMap = $renameMap[ $gateway ];
            if (array_key_exists($defaultName, $gatewayMap)) {
                return $gatewayMap[ $defaultName ];
            }
        }

        return false;
    }
private function getGatewayFieldName ( $ defaultName , $ gateway = null ) { if ( ! $ gateway ) { if ( ! $ this -> gateway ) { return false ; } return $ this -> getGatewayFieldName ( $ defaultName , $ this -> gateway ) ; } $ renameMap = $ this -> config ( ) -> rename ; if ( is_array ( $ renameMap ) && array_key_exists ( $ gateway , $ renameMap ) ) { $ gatewayMap = $ renameMap [ $ gateway ] ; if ( array_key_exists ( $ defaultName , $ gatewayMap ) ) { return $ gatewayMap [ $ defaultName ] ; } } return false ; }
Fetches custom name for a gateway field from the rename map, or returns false

@param      $defaultName
@param null $gateway Optional, will default to current gateway if instantiated

@return bool|string Returns false if no custom gateway field name has been defined, otherwise returns the custom
name
Fetches custom name for a gateway field from the rename map or returns false