2014-09-08 10:03:42 +00:00
|
|
|
from .methods import PaymentMethod
|
2014-07-30 12:55:33 +00:00
|
|
|
def process_transactions(modeladmin, request, queryset):
|
2014-09-08 10:03:42 +00:00
|
|
|
for method, transactions in queryset.group_by('source__method'):
|
|
|
|
if method is not None:
|
|
|
|
PaymentMethod.get_plugin(method)().process(transactions)
|