Trustly/Api/api.php
public function serializeData($data) {
		if(is_array($data)) {
			ksort($data);
			$return = '';
			foreach($data as $key => $value) {
				if(is_numeric($key)) {
					$return .= $this->serializeData($value);
				} else {
					$return .= $key . $this->serializeData($value);
				}
			}
			return $return;
		} else {
			return (string)$data;
		}
	}
public function serializeData($data) {
		if(is_array($data)) {
			ksort($data);
			$return = '';
			foreach($data as $key => $value) {
				if(is_numeric($key)) {
					$return .= $this->serializeData($value);
				} else {
					$return .= $key . $this->serializeData($value);
				}
			}
			return $return;
		} else {
			return (string)$data;
		}
	}
public function serializeData ( $ data ) { if ( is_array ( $ data ) ) { ksort ( $ data ) ; $ return = '' ; foreach ( $ data as $ key => $ value ) { if ( is_numeric ( $ key ) ) { $ return .= $ this -> serializeData ( $ value ) ; } else { $ return .= $ key . $ this -> serializeData ( $ value ) ; } } return $ return ; } else { return ( string ) $ data ; } }
Serializes the given data in a form suitable for creating a signature.

@link https://trustly.com/en/developer/api#/signature

@param array $data Input data to serialize

@return array The input data in a serialized form
Serializes the given data in a form suitable for creating a signature .