Changeset 1158 for WAeUP_SRP/trunk/skins/waeup_epayment/pay_online.py
- Timestamp:
- 30 Dec 2006, 16:58:14 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_epayment/pay_online.py
r1147 r1158 10 10 # $Id$ 11 11 """ 12 return Info about the current Student 12 pay online 13 13 """ 14 14 import logging … … 24 24 25 25 student = getattr(students,student_id) 26 sbrain = context.students_catalog(id=student_id)[0] 27 res = context.portal_catalog(portal_type="Certificate", 28 id = sbrain.course) 29 if not res: 30 return None 31 sfc = res[0].getObject().getContent().school_fee_code 26 32 info = {} 27 33 info['callback_url'] = "%s/epayment_cb" % student.absolute_url() 34 info['payment_type_code'] = sfc 35 info['payment_type_description'] = "Schoolfee %s for 2006/2007 Session" % sfc 36 info['payment_bill_to'] = sbrain.name 37 info['payment_ship_to'] = "University of Benin" 38 info['student_id'] = student_id 39 info['student_name'] = sbrain.name 40 info['student_email'] = sbrain.email 41 info['order_id'] = "%s%s" % (student_id[1:],DateTime.DateTime().strftime("%d%m%y%H%M%S")) 42 info['amount'] = "75000" 43 return context.wema_form(info=info)
Note: See TracChangeset for help on using the changeset viewer.