public function assignData(DataObject $data)
 {
     $additional_data = new DataObject($data->getAdditionalData());
     $info_instance = $this->getInfoInstance();
     $info_instance->setAdditionalInformation('ticket', $additional_data->getData('ticket_response_ticket'));
     $info_instance->setAdditionalInformation('hmac', $additional_data->getData('ticket_response_monetra_resp_hmacsha256'));
     $info_instance->setAdditionalInformation('sequence', $additional_data->getData('ticket_request_sequence'));
     $info_instance->setAdditionalInformation('timestamp', $additional_data->getData('ticket_request_timestamp'));
     return $this;
 }
Exemple #2
0
 /**
  * Assign corresponding data
  *
  * @param \Magento\Framework\DataObject|mixed $data
  * @return $this
  * @throws LocalizedException
  */
 public function assignData(\Magento\Framework\DataObject $data)
 {
     $additionalData = $data->getAdditionalData();
     if (!is_array($data->getAdditionalData())) {
         return $this;
     }
     $additionalData = new DataObject($additionalData);
     $infoInstance = $this->getInfoInstance();
     $infoInstance->setAdditionalInformation('payment_method_nonce', $additionalData->getData('payment_method_nonce'));
     return $this;
 }
 /**
  * Assign corresponding data
  *
  * @param \Magento\Framework\DataObject|mixed $data
  * @return $this
  * @throws LocalizedException
  */
 public function assignData(\Magento\Framework\DataObject $data)
 {
     $additionalData = $data->getAdditionalData();
     if (!is_array($data->getAdditionalData())) {
         return $this;
     }
     $additionalData = new DataObject($additionalData);
     $infoInstance = $this->getInfoInstance();
     if ($this->getConfigData('fraudprotection') > 0) {
         $infoInstance->setAdditionalInformation('device_data', $additionalData->getData('device_data'));
     }
     $infoInstance->setAdditionalInformation('cc_last4', $additionalData->getData('cc_last4'));
     $infoInstance->setAdditionalInformation('cc_token', $additionalData->getData('cc_token'));
     $infoInstance->setAdditionalInformation('payment_method_nonce', $additionalData->getData('payment_method_nonce'));
     $infoInstance->setCcLast4($additionalData->getData('cc_last4'));
     $infoInstance->setCcType($additionalData->getData('cc_type'));
     $infoInstance->setCcExpMonth($additionalData->getData('cc_exp_month'));
     $infoInstance->setCcExpYear($additionalData->getData('cc_exp_year'));
     return $this;
 }