示例#1
0
文件: Payment.php 项目: metisfw/adyen
 /**
  * @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);
 }
示例#2
0
 /**
  * @param Address $address
  *
  * @return string
  */
 public function generateAddressSignature(Address $address)
 {
     $values = $address->getSignatureValues();
     $values = $this->filterValues($values);
     return $this->generateSignature($values);
 }