/** * Process the payment and return the result * * @param $order_id * * @return array */ public function process_payment($order_id) { $order = new WC_order($order_id); return array('result' => 'success', 'redirect' => $order->get_checkout_payment_url(true)); }