/** * @param string $signature * * @return void */ public function signDeliveryAddress($signature) { if (!$this->deliveryAddress) { throw new InvalidStateException("Can not sign missing delivery address."); } $this->deliveryAddress->sign($signature); }
/** * @param Address $address * * @return string */ public function generateAddressSignature(Address $address) { $values = $address->getSignatureValues(); $values = $this->filterValues($values); return $this->generateSignature($values); }