/** * @param string $signature * * @return void */ public function signShopper($signature) { if (!$this->shopper) { throw new InvalidStateException("Can not sign missing shopper."); } $this->shopper->sign($signature); }
/** * @param Shopper $shopper * * @return string */ public function generateShopperSignature(Shopper $shopper) { $values = $shopper->getSignatureValues(); $values = $this->filterValues($values); return $this->generateSignature($values); }