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