Index: /main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/payments/payment.py
===================================================================
--- /main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/payments/payment.py	(revision 12133)
+++ /main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/payments/payment.py	(revision 12134)
@@ -19,5 +19,7 @@
 These are the payment tickets.
 """
+import decimal
 import grok
+import uuid
 from datetime import datetime
 from grok import index
@@ -28,5 +30,5 @@
 from waeup.ikoba.interfaces import MessageFactory as _
 from waeup.ikoba.payments.interfaces import (
-    IPayment, IOnlinePayment,
+    IPayment, IOnlinePayment, STATE_UNPAID, STATE_FAILED, STATE_PAID,
     payment_states)
 from waeup.ikoba.utils.helpers import attrs_to_fields, get_current_principal
@@ -53,5 +55,10 @@
         super(Payment, self).__init__()
         self.creation_date = datetime.utcnow()
-        self.p_id = u''  # XXX: Get a unique id here
+        self.payment_date = None
+        self.payment_id = u'PAY_' + unicode(uuid.uuid4().hex)
+        self.amount = decimal.Decimal("0.00")
+        self.payed_item_id = None
+        self.payer_id = None
+        self.state = STATE_UNPAID
         return
 
