Index: /main/waeup.sirp/trunk/src/waeup/sirp/payments/payment.py
===================================================================
--- /main/waeup.sirp/trunk/src/waeup/sirp/payments/payment.py	(revision 6865)
+++ /main/waeup.sirp/trunk/src/waeup/sirp/payments/payment.py	(revision 6866)
@@ -19,4 +19,6 @@
 import grok
 from grok import index
+from zope.component.interfaces import IFactory
+from zope.interface import implementedBy
 from waeup.sirp.payments.interfaces import (
     IPayment, ISCPayment, IOnlinePayment)
@@ -57,2 +59,17 @@
 
 OnlinePayment = attrs_to_fields(OnlinePayment)
+
+# Online payments must be importable. So we might need a factory.
+class OnlinePaymentFactory(grok.GlobalUtility):
+    """A factory for online payments.
+    """
+    grok.implements(IFactory)
+    grok.name(u'waeup.OnlinePayment')
+    title = u"Create a new online payment.",
+    description = u"This factory instantiates new online payment instances."
+
+    def __call__(self, *args, **kw):
+        return OnlinePayment()
+
+    def getInterfaces(self):
+        return implementedBy(OnlinePayment)
Index: /main/waeup.sirp/trunk/src/waeup/sirp/payments/tests.py
===================================================================
--- /main/waeup.sirp/trunk/src/waeup/sirp/payments/tests.py	(revision 6865)
+++ /main/waeup.sirp/trunk/src/waeup/sirp/payments/tests.py	(revision 6866)
@@ -22,5 +22,5 @@
 from waeup.sirp.payments.container import PaymentsContainer
 from waeup.sirp.payments.payment import (
-    SCPayment, OnlinePayment)
+    SCPayment, OnlinePayment, OnlinePaymentFactory)
 from waeup.sirp.testing import (FunctionalLayer, FunctionalTestCase)
 
@@ -64,2 +64,23 @@
         self.assertRaises(
             NotImplementedError, container.clear)
+
+class OnlinePaymentFactoryTest(FunctionalTestCase):
+
+    layer = FunctionalLayer
+
+    def setUp(self):
+        super(OnlinePaymentFactoryTest, self).setUp()
+        self.factory = OnlinePaymentFactory()
+        return
+
+    def tearDown(self):
+        super(OnlinePaymentFactoryTest, self).tearDown()
+        return
+
+    def test_factory(self):
+        obj = self.factory()
+        assert isinstance(obj, OnlinePayment)
+
+    def test_getInterfaces(self):
+        implemented_by = self.factory.getInterfaces()
+        assert implemented_by.isOrExtends(IOnlinePayment)
