예제 #1
0
 public function __construct($data)
 {
     parent::__construct($data);
     parse_str($data, $arr);
     $this->token = $arr['Token'];
     $this->expiryDate = $arr['ExpiryDate'];
 }
예제 #2
0
 public function __construct($data)
 {
     parent::__construct($data);
     parse_str($data, $arr);
     if (array_key_exists('TxAuthNo', $arr) && !empty($arr['TxAuthNo'])) {
         $this->txAuthNo = (int) $arr['TxAuthNo'];
     }
     $this->avsCv2 = $arr['AVSCV2'];
     $this->addressResult = $arr['AddressResult'];
     $this->postCodeResult = $arr['PostCodeResult'];
     $this->cv2Result = $arr['CV2Result'];
     $this->giftAid = $arr['GiftAid'];
     $this->threeDSecureStatus = $arr['3DSecureStatus'];
     if (array_key_exists('CAVV', $arr)) {
         $this->cavv = $arr['CAVV'];
     }
     if (array_key_exists('AddressStatus', $arr)) {
         $this->addressStatus = $arr['AddressStatus'];
     }
     if (array_key_exists('PayerStatus', $arr)) {
         $this->payerStatus = $arr['PayerStatus'];
     }
 }
 /**
  * Is Notification Authentic
  *
  * @param \Insig\SagepayBundle\Model\NotificationRequest $notification
  * @param string $securityKey
  * @return boolean
  * @author Damon Jones
  */
 public function isNotificationAuthentic(NotificationRequest $request, $securityKey)
 {
     return $request->getVpsSignature() === $request->getComputedSignature($this->vendor, $securityKey);
 }