src/Helper/Merchant.php
public function buildQuery(array $args = []): string
	{
		$out = array_merge(
			$this->payment->getArgs(), // Arguments of the payment
			$args, // Optional helper arguments
			['signature' => $this->payment->getSignature()] // Signature
		);

		$str = [];
		/** @var string|int $val */
		foreach ($out as $key => $val) {
			$str[] = rawurlencode((string) $key) . '=' . rawurlencode((string) $val);
		}

		return implode('&', $str);
	}
public function buildQuery(array $args = []): string
	{
		$out = array_merge(
			$this->payment->getArgs(), // Arguments of the payment
			$args, // Optional helper arguments
			['signature' => $this->payment->getSignature()] // Signature
		);

		$str = [];
		/** @var string|int $val */
		foreach ($out as $key => $val) {
			$str[] = rawurlencode((string) $key) . '=' . rawurlencode((string) $val);
		}

		return implode('&', $str);
	}
public function buildQuery ( array $ args = [ ] ) : string { $ out = array_merge ( $ this -> payment -> getArgs ( ) , // Arguments of the payment $ args , // Optional helper arguments [ 'signature' => $ this -> payment -> getSignature ( ) ] // Signature ) ; $ str = [ ] ; /** @var string|int $val */ foreach ( $ out as $ key => $ val ) { $ str [ ] = rawurlencode ( ( string ) $ key ) . '=' . rawurlencode ( ( string ) $ val ) ; } return implode ( '&' , $ str ) ; }
Build the query part of the URL from payment data and optional
helper data.

@param array $args Associative array of optional arguments that should
be appended to the URL.
@return string Query part of the URL with all parameters correctly escaped
Build the query part of the URL from payment data and optional helper data .