$orderData['invoice'], 'first_name' => htmlspecialchars($orderData['billingFirstName']), 'last_name' => htmlspecialchars($orderData['billingLastName']), 'address' => htmlspecialchars($orderData['billingAddress']), 'city' => htmlspecialchars($orderData['billingCity']), 'state' => htmlspecialchars($orderData['billingState']), 'zip' => htmlspecialchars($orderData['billingZip']), 'card_num' => $orderData['cardNumber'], 'exp_date' => date('m/Y', strtotime($orderData['expirationDate'])), 'card_code' => $orderData['cardCode'], 'amount' => $orderData['total'] ); return $data; } public function getErrors() { $paymentData = $this->getProcessResponse()->getData(); return $paymentData['response_reason_text']; } public function process($data = array(), $type = null) { parent::process($data, $type); if ($this->getProcessResponse()->isSuccess()) { $this->getPayment()->updateOrder($this->getProcessResponse()->getData('invoice_number')); } return $this; } }