amazonData->isSetResponseMetadata()) { $responseMetadata = $this->amazonData->getResponseMetadata(); if ($responseMetadata->isSetRequestId()) { $amazonInternalDatas->amazon_response_amazonRequestId = $responseMetadata->getRequestId(); } } return $amazonInternalDatas; } /** * Only send an email if the ERP is enabled, and authorization is done by ERP * IN all other cases, there will be an authorization after OrderConfirmed, that will send an email * @param $order */ function onResponseUpdateOrderHistory ($order) { $order_history['order_status'] = $this->_currentMethod->status_orderconfirmed; $order_history['customer_notified'] = $this->getCustomerNotified(); $order_history['comments'] = vmText::_('VMPAYMENT_AMAZON_COMMENT_STATUS_ORDERCONFIRMED'); $modelOrder = VmModel::getModel('orders'); $modelOrder->updateStatusForOneOrder($order['details']['BT']->virtuemart_order_id, $order_history, false); } function getContents () { $contents = $this->tableStart("ConfirmOrderReferenceResponse"); $contents .= $this->getRow("ResponseHeaderMetadata: ", $this->amazonData->getResponseHeaderMetadata()); if ($this->amazonData->isSetResponseMetadata()) { $more = ''; $responseMetadata = $this->amazonData->getResponseMetadata(); if ($responseMetadata->isSetRequestId()) { $more .= "
RequestId: " . $responseMetadata->getRequestId(); } $contents .= $this->getRow("ResponseMetadata: ", $more); } $contents .= $this->tableEnd(); return $contents; } }