Changeset 2619 for WAeUP_SRP/base
- Timestamp:
- 10 Nov 2007, 17:39:36 (17 years ago)
- Location:
- WAeUP_SRP/base/skins/waeup_epayment
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_epayment/pay_by_sc.py
r2475 r2619 84 84 #from Products.zdb import set_trace; set_trace() 85 85 info = {} 86 order_id = ds.get('pin_n') 87 p_id = "p%s" % order_id 86 p_id = "p%s" % ds.get('pin_n') 88 87 pin = str(ds.get('pin')) 89 88 try: … … 100 99 info['date'] = now 101 100 info['amount'] = cost 102 pin = info['order_id'] = "%s" % (pin)103 info['type_code'] = "%s" % pin 101 pin = info['order_id'] = "%s" % pin 102 info['type_code'] = "%s" % pin #type_code is redundant and will be removed soon 104 103 info['type_description'] = 'School Fee for Session %s' % next_session_str 105 104 info['resp_code'] = "SC" … … 117 116 except: 118 117 pass 119 verdict = s_brain.verdict 118 verdict = s_brain.verdict 120 119 study_course.getContent().edit(mapping= {'current_level': next_level_id, 121 120 'current_session': next_session_id, -
WAeUP_SRP/base/skins/waeup_epayment/pay_interswitch.py
r2172 r2619 57 57 if fulltime: 58 58 pay_item_id = "6100" 59 info['type_code'] = sbrain.faculty 59 info['type_code'] = sbrain.faculty #type_code is redundant and will be removed soon 60 60 info['bank'] = '' 61 61 else: 62 62 pay_item_id = "6101" 63 info['type_code'] = sbrain.course 63 info['type_code'] = sbrain.course #type_code is redundant and will be removed soon 64 64 info['bank'] = '' 65 65 info['payment_possible'] = True … … 72 72 now = DateTime.DateTime() 73 73 info['date'] = now 74 order_id = info['order_id']= "%d" % int(now.timeTime()*1000)75 info['order_id'] = "%s%s" % (student_id[1:], order_id)76 p_id = "p%s" % order_id74 timestamp = "%d" % int(now.timeTime()*1000) 75 info['order_id'] = "%s%s" % (student_id[1:],timestamp) 76 p_id = "p%s" % timestamp 77 77 78 78 if student_id is None:
Note: See TracChangeset for help on using the changeset viewer.