Last change
on this file since 17931 was
12673,
checked in by uli, 10 years ago
|
Merge changes from uli-fake-gw-provider back into trunk.
|
File size:
490 bytes
|
Line | |
---|
1 | import grok |
---|
2 | from waeup.ikoba.payments.interfaces import IPaymentGatewayServicesLister |
---|
3 | from waeup.ikoba.payments.payment import get_payment_providers |
---|
4 | |
---|
5 | |
---|
6 | class PCNPaymentGatewayServicesLister(grok.GlobalUtility): |
---|
7 | |
---|
8 | grok.implements(IPaymentGatewayServicesLister) |
---|
9 | |
---|
10 | def __call__(self): |
---|
11 | full_set = get_payment_providers() |
---|
12 | filtered_set = [(key, util) for key, util in full_set.items() |
---|
13 | if key in [u'demo_creditcard']] |
---|
14 | return dict(filtered_set) |
---|
Note: See
TracBrowser for help on using the repository browser.