public static function getList(array $options = array())
    {
        $api = new Api\GetService();
        $result = $api->doRequest();
        $paymentMethods = self::reorderOutput($result);

        if (isset($options['country'])) {
            $paymentMethods = self::filterCountry($paymentMethods, $options['country']);
        }

        return $paymentMethods;
    }
public static function getList(array $options = array())
    {
        $api = new Api\GetService();
        $result = $api->doRequest();
        $paymentMethods = self::reorderOutput($result);

        if (isset($options['country'])) {
            $paymentMethods = self::filterCountry($paymentMethods, $options['country']);
        }

        return $paymentMethods;
    }
public static function getList ( array $ options = array ( ) ) { $ api = new Api \ GetService ( ) ; $ result = $ api -> doRequest ( ) ; $ paymentMethods = self :: reorderOutput ( $ result ) ; if ( isset ( $ options [ 'country' ] ) ) { $ paymentMethods = self :: filterCountry ( $ paymentMethods , $ options [ 'country' ] ) ; } return $ paymentMethods ; }
Get a list of available payment methods

@param array $options
@return array
Get a list of available payment methods