/**
  * Process the payment
  *
  * @param  int $order_id
  * @return array
  */
 public function process_payment($order_id)
 {
     // Processing subscription
     if ($this->order_contains_subscription($order_id) || function_exists('wcs_is_subscription') && wcs_is_subscription($order_id)) {
         return $this->process_subscription($order_id);
         // Processing pre-order
     } elseif ($this->order_contains_pre_order($order_id)) {
         return $this->process_pre_order($order_id);
         // Processing regular product
     } else {
         return parent::process_payment($order_id);
     }
 }
 /**
  * process_capture function
  * 
  * @param int $order_id
  * @return void
  */
 public function process_capture($order_id)
 {
     $gateway = new WC_Payeezy_Gateway();
     $gateway->process_capture($order_id);
 }