source: main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/payments.py @ 17517

Last change on this file since 17517 was 12673, checked in by uli, 10 years ago

Merge changes from uli-fake-gw-provider back into trunk.

File size: 490 bytes
Line 
1import grok
2from waeup.ikoba.payments.interfaces import IPaymentGatewayServicesLister
3from waeup.ikoba.payments.payment import get_payment_providers
4
5
6class 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.