public function submitFormCharge($payment_method, $pane_form, $pane_values, $order, $charge) { $config = parent::submitFormCharge($payment_method, $pane_form, $pane_values, $order, $charge); $config['postedParam']['card']['number'] = $pane_values['credit_card']['number']; $config['postedParam']['card']['expiryMonth'] = $pane_values['credit_card']['exp_month']; $config['postedParam']['card']['expiryYear'] = $pane_values['credit_card']['exp_year']; $config['postedParam']['card']['cvv'] = $pane_values['credit_card']['code']; return $this->_placeorder($config, $charge, $order, $payment_method); }
/** * Payment method callback: checkout form submission. */ public function submitFormCharge($payment_method, $pane_form, $pane_values, $order, $charge) { $config = parent::submitFormCharge($payment_method, $pane_form, $pane_values, $order, $charge); $config['postedParam']['paymentToken'] = $pane_values['cko-cc-paymenToken']; if (!empty($pane_values['cko-cc-redirectUrl'])) { drupal_goto($pane_values['cko-cc-redirectUrl'] . '&trackId=' . $order->order_id); } else { return $this->placeorder($config, $charge, $order, $payment_method); } }