def get_valid_payment_methods(request):
    result = []
    for pm in PaymentMethod.objects.filter(active=True):
        if pm.is_valid(request):
            result.append(pm)
    return result
Returns all valid payment methods (aka. selectable) for given request as
dataset/ETHPy150Open diefenbach/django-lfs/lfs/payment/utils.py/get_valid_payment_methods