Ejemplo n.º 1
0
 /**
  * provides functionality to tell checkout if
  * the gateway should be processed or not. If false, the gateway will not be
  * processed, otherwise the gateway will be processed.
  *
  * @param $subtotal
  * @param $shipping_total
  * @param int $discount
  * @return boolean defaults to needs_payment from cart class. If overridden, the gateway will provide
  * details as to when it should or shouldn't be processed.
  * @since 1.2
  */
 public function process_gateway($subtotal, $shipping_total, $discount = 0)
 {
     // default to cart needs_payment() to keep the same functionality that FFL Commerce offers today
     // if overridden, the gateway will provide the details when to skip or not
     return fflcommerce_cart::needs_payment();
 }