src/Payment.php
public function getSignature(): string
	{
		$input = $this->getArgs();

		$items = [];
		foreach ($input as $key => $val) {
			$items[] = sprintf('%s=%s', $key, $val);
		}

		$items[] = 'password=' . $this->getMerchantConfig()->password;

		return self::hashFunction(implode('&', $items));
	}
public function getSignature(): string
	{
		$input = $this->getArgs();

		$items = [];
		foreach ($input as $key => $val) {
			$items[] = sprintf('%s=%s', $key, $val);
		}

		$items[] = 'password=' . $this->getMerchantConfig()->password;

		return self::hashFunction(implode('&', $items));
	}
public function getSignature ( ) : string { $ input = $ this -> getArgs ( ) ; $ items = [ ] ; foreach ( $ input as $ key => $ val ) { $ items [ ] = sprintf ( '%s=%s' , $ key , $ val ) ; } $ items [ ] = 'password=' . $ this -> getMerchantConfig ( ) -> password ; return self :: hashFunction ( implode ( '&' , $ items ) ) ; }
Returns signature to authenticate the payment. The signature
consists of hash of all specified parameters and the merchant
password specified in the configuration. So no one can alter the
payment, because the password is not known.
Returns signature to authenticate the payment . The signature consists of hash of all specified parameters and the merchant password specified in the configuration . So no one can alter the payment because the password is not known .