public function getSupportedActions($gateway)
    {
        if (!is_string($gateway)) {
            $gateway = get_class($gateway);
        }
        $gateway = Inflect::camelize($gateway);

        $class = new \ReflectionClass('AktiveMerchant\\Billing\\Gateways\\' . $gateway);
        $actions = array();

        foreach ($this->actions as $action) {
            if ($class->hasMethod($action)) {
                $actions[] = $action;
            }
        }

        return $actions;
    }