public function __construct($data)
 {
     parent::__construct($data);
     parse_str($data, $arr);
     $this->token = $arr['Token'];
     $this->expiryDate = $arr['ExpiryDate'];
 }
 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'];
     }
 }