src/ShopBundle/objects/db/TShopPaymentHandler/TShopPaymentHandlerIPaymentEndPoint.class.php
protected function GetBillingCountryISOCode($oBillingAddress)
    {
        $sIsoCode = '';
        $oCountry = $oBillingAddress->GetFieldDataCountry();
        if (!is_null($oCountry)) {
            $oSystemCountry = $oCountry->GetFieldTCountry();
            if (!is_null($oSystemCountry)) {
                $sIsoCode = $oSystemCountry->fieldIsoCode2;
            }
        }

        return $sIsoCode;
    }
protected function GetBillingCountryISOCode($oBillingAddress)
    {
        $sIsoCode = '';
        $oCountry = $oBillingAddress->GetFieldDataCountry();
        if (!is_null($oCountry)) {
            $oSystemCountry = $oCountry->GetFieldTCountry();
            if (!is_null($oSystemCountry)) {
                $sIsoCode = $oSystemCountry->fieldIsoCode2;
            }
        }

        return $sIsoCode;
    }
protected function GetBillingCountryISOCode ( $ oBillingAddress ) { $ sIsoCode = '' ; $ oCountry = $ oBillingAddress -> GetFieldDataCountry ( ) ; if ( ! is_null ( $ oCountry ) ) { $ oSystemCountry = $ oCountry -> GetFieldTCountry ( ) ; if ( ! is_null ( $ oSystemCountry ) ) { $ sIsoCode = $ oSystemCountry -> fieldIsoCode2 ; } } return $ sIsoCode ; }
Get the iso code from users billing address.

@param TdbDataExtranetUserAddress $oBillingAddress

@return string $sIsoCode
Get the iso code from users billing address .