Changeset 2059 for WAeUP_SRP/trunk/skins/waeup_epayment
- Timestamp:
- 26 Jul 2007, 18:09:47 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_epayment/pay_by_sc.py
r2005 r2059 78 78 order_id = ds.get('pin_n') 79 79 p_id = "p%s" % order_id 80 pin = str(ds.get('pin')) 81 try: 82 cost = context.portal_pins(pin="".join(pin.split('-')))[0].cost 83 except: 84 cost = "n/a" 85 try: 86 x = float(cost) 87 except: 88 cost = "n/a" 89 80 90 if not hasattr(payments,p_id): 81 91 now = DateTime.DateTime() 82 92 info['date'] = now 83 info['amount'] = "n/a"84 pin = info['order_id'] = "%s" % ( ds.get('pin'))93 info['amount'] = cost 94 pin = info['order_id'] = "%s" % (pin) 85 95 info['type_code'] = "%s" % pin 86 96 info['type_description'] = 'School Fee for Session %s' % next_session_str
Note: See TracChangeset for help on using the changeset viewer.