code: public static function getGateway()
      {
          $gateways = Session::get('shop.gateway');
          return $gateways && count($gateways) > 0
              ? $gateways[count($gateways) - 1]
              : null;
      }
docs: Checkout current user's cart.