src/Klarna.php
private function _addressDigestPart(KlarnaAddr $address = null)
    {
        if ($address === null) {
            return array();
        }

        $keyOrder = array(
            'careof', 'street', 'zip', 'city', 'country', 'fname', 'lname'
        );

        $holder = $address->toArray();
        $digest = array();

        foreach ($keyOrder as $key) {
            if ($holder[$key] != "") {
                $digest[] = $holder[$key];
            }
        }

        return $digest;
    }
private function _addressDigestPart(KlarnaAddr $address = null)
    {
        if ($address === null) {
            return array();
        }

        $keyOrder = array(
            'careof', 'street', 'zip', 'city', 'country', 'fname', 'lname'
        );

        $holder = $address->toArray();
        $digest = array();

        foreach ($keyOrder as $key) {
            if ($holder[$key] != "") {
                $digest[] = $holder[$key];
            }
        }

        return $digest;
    }
private function _addressDigestPart ( KlarnaAddr $ address = null ) { if ( $ address === null ) { return array ( ) ; } $ keyOrder = array ( 'careof' , 'street' , 'zip' , 'city' , 'country' , 'fname' , 'lname' ) ; $ holder = $ address -> toArray ( ) ; $ digest = array ( ) ; foreach ( $ keyOrder as $ key ) { if ( $ holder [ $ key ] != "" ) { $ digest [ ] = $ holder [ $ key ] ; } } return $ digest ; }
Help function to sort the address for update digest.

@param KlarnaAddr|null $address KlarnaAddr object or null

@return array
Help function to sort the address for update digest .