public function before_process() { global $order; $config = parent::before_process(); $config['postedParam']['card']['name'] = $_POST['cc_owner']; $config['postedParam']['card']['number'] = $_POST['cc_number']; $config['postedParam']['card']['expiryMonth'] = $_POST['cc_expires_month']; $config['postedParam']['card']['expiryYear'] = $_POST['cc_expires_year']; $config['postedParam']['card']['cvv'] = $_POST['cc_cvv']; $config['postedParam']['card']['billingDetails']['addressLine1'] = $order->billing['street_address']; $config['postedParam']['card']['billingDetails']['addressLine2'] = $order->billing['suburb']; $config['postedParam']['card']['billingDetails']['postcode'] = $order->billing['postcode']; $config['postedParam']['card']['billingDetails']['country'] = $order->billing['country']['iso_code_2']; $config['postedParam']['card']['billingDetails']['city'] = $order->billing['city']; $config['postedParam']['card']['billingDetails']['phone'] = array('number' => $order->customer['telephone']); $this->_placeorder($config); }
public function handleResponse($respondCharge) { parent::handleResponse($respondCharge); }
public function before_process() { global $_POST, $order; $config = parent::before_process(); $this->_placeorder($config); }