Index: /main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/payments/interfaces.py
===================================================================
--- /main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/payments/interfaces.py	(revision 12112)
+++ /main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/payments/interfaces.py	(revision 12113)
@@ -16,4 +16,5 @@
 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 ##
+import decimal
 from zope.interface import Attribute
 from zope import schema
@@ -23,9 +24,16 @@
 from waeup.ikoba.interfaces import MessageFactory as _
 
+
+#: Possible states of payments
+STATE_UNPAID = 1
+STATE_PAID = 2
+STATE_FAILED = 4
+
 payment_states = SimpleIkobaVocabulary(
-    (_('Not yet paid'),'unpaid'),
-    (_('Paid'),'paid'),
-    (_('Failed'),'failed'),
+    (_('Not yet paid'), STATE_UNPAID),
+    (_('Paid'), STATE_PAID),
+    (_('Failed'), STATE_FAILED),
     )
+
 
 class PaymentCategorySource(ContextualDictSourceFactoryBase):
@@ -45,34 +53,25 @@
 
     """
-    p_id = Attribute('Payment identifier')
-
-    p_category = schema.Choice(
-        title = _(u'Payment Category'),
-        #default = u'schoolfee',
-        source = PaymentCategorySource(),
+    payment_id = schema.TextLine(
+        title = u'Payment Identifier',
+        default = None,
         required = True,
         )
 
-    p_item = schema.TextLine(
-        title = u'',
+    payer_id = schema.TextLine(
+        title = u'Payer',
         default = None,
-        required = False,
-        )
-
-    display_item = schema.TextLine(
-        title = _(u'Payment Item'),
-        required = False,
-        readonly = True,
-        )
-
-    p_session = schema.Choice(
-        title = _(u'Payment Session'),
-        source = application_sessions_vocab,
         required = True,
         )
 
-    p_state = schema.Choice(
+    payed_item_id = schema.TextLine(
+        title = u'Payed Item',
+        default = None,
+        required = True,
+        )
+
+    state = schema.Choice(
         title = _(u'Payment State'),
-        default = u'unpaid',
+        default = STATE_UNPAID,
         vocabulary = payment_states,
         required = True,
@@ -80,5 +79,5 @@
 
     creation_date = schema.Datetime(
-        title = _(u'Ticket Creation Date'),
+        title = _(u'Creation Date'),
         readonly = False,
         required = False,
@@ -91,10 +90,13 @@
         )
 
-    amount_auth = schema.Float(
-        title = _(u'Amount Authorized'),
-        default = 0.0,
+    amount = schema.Decimal(
+        title = _(u'Amount'),
+        description = _(
+            'The overall sum payed, including all taxes fees, etc.'),
+        default = decimal.Decimal("0.00"),
         required = True,
         readonly = False,
         )
+
 
 class IOnlinePayment(IPayment):
