Changeset 2891 for WAeUP_SRP/fceokene
- Timestamp:
- 9 Dec 2007, 11:03:55 (17 years ago)
- Location:
- WAeUP_SRP/fceokene
- Files:
-
- 1 added
- 1 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/fceokene/profiles/default/layouts/payment.xml
r2877 r2891 128 128 <property name="vocabulary">payment_status</property> 129 129 </widget> 130 <widget name=" subject" meta_type="Select Widget">131 <property name="title">Payment Subject</property>132 <property name="fields"> 133 <element value=" subject"/>134 </property> 135 <property name="is_required">False</property> 136 <property name="label">Payment Subject</property>137 <property name="label_edit">Payment Subject</property>138 <property name="readonly_layout_modes"/> 139 <property name="hidden_layout_modes"/> 140 <property name="hidden_readonly_layout_modes"/> 141 <property name="vocabulary">payment_ subjects</property>142 </widget> 143 <widget name=" target" meta_type="String Widget">144 <property name="title">Payment Target</property>145 <property name="fields"> 146 <element value=" target"/>147 </property> 148 <property name="is_required">False</property> 149 <property name="label">Payment for</property>150 <property name="label_edit">Payment for</property>130 <widget name="category" meta_type="Select Widget"> 131 <property name="title">Payment Category</property> 132 <property name="fields"> 133 <element value="category"/> 134 </property> 135 <property name="is_required">False</property> 136 <property name="label">Payment Category</property> 137 <property name="label_edit">Payment Category</property> 138 <property name="readonly_layout_modes"/> 139 <property name="hidden_layout_modes"/> 140 <property name="hidden_readonly_layout_modes"/> 141 <property name="vocabulary">payment_categories</property> 142 </widget> 143 <widget name="item" meta_type="String Widget"> 144 <property name="title">Payment Item</property> 145 <property name="fields"> 146 <element value="item"/> 147 </property> 148 <property name="is_required">False</property> 149 <property name="label">Payment Item</property> 150 <property name="label_edit">Payment Item</property> 151 151 <property name="readonly_layout_modes"/> 152 152 <property name="hidden_layout_modes"/> -
WAeUP_SRP/fceokene/profiles/default/payments_catalog.xml
r2863 r2891 14 14 <column value="status"/> 15 15 <column value="student_id"/> 16 <column value=" subject"/>16 <column value="category"/> 17 17 <column value="surcharge"/> 18 18 <column value="type"/> 19 <column value=" target"/>19 <column value="item"/> 20 20 <index name="key" meta_type="FieldIndex"> 21 21 <indexed_attr value="key"/> … … 35 35 <index name="resp_desc" meta_type="KeywordIndex"> 36 36 <indexed_attr value="resp_desc"/> 37 </index> 37 </index> 38 38 <index name="session_id" meta_type="FieldIndex"> 39 39 <indexed_attr value="session_id"/> … … 41 41 <index name="status" meta_type="FieldIndex"> 42 42 <indexed_attr value="status"/> 43 </index> 43 </index> 44 44 <index name="student_id" meta_type="FieldIndex"> 45 45 <indexed_attr value="student_id"/> 46 46 </index> 47 <index name=" subject" meta_type="KeywordIndex">48 <indexed_attr value=" subject"/>47 <index name="category" meta_type="FieldIndex"> 48 <indexed_attr value="category"/> 49 49 </index> 50 <index name=" target" meta_type="FieldIndex">51 <indexed_attr value=" target"/>50 <index name="item" meta_type="FieldIndex"> 51 <indexed_attr value="item"/> 52 52 </index> 53 <index name="type" meta_type=" KeywordIndex">53 <index name="type" meta_type="FieldIndex"> 54 54 <indexed_attr value="type"/> 55 55 </index> -
WAeUP_SRP/fceokene/profiles/default/schemas/payment.xml
r2877 r2891 8 8 <field name="amount" meta_type="CPS String Field"/> 9 9 <field name="surcharge" meta_type="CPS String Field"/> 10 <field name=" subject" meta_type="CPS String Field"/>10 <field name="item" meta_type="CPS String Field"/> 11 11 <field name="type" meta_type="CPS String Field"/> 12 <field name=" target" meta_type="CPS String Field"/>12 <field name="category" meta_type="CPS String Field"/> 13 13 <field name="status" meta_type="CPS String Field"/> 14 14 <field name="resp_pay_reference" meta_type="CPS String Field"/> -
WAeUP_SRP/fceokene/profiles/default/vocabularies.xml
r2813 r2891 31 31 <object name="payment_types" meta_type="CPS Vocabulary"/> 32 32 <object name="payment_status" meta_type="CPS Vocabulary"/> 33 <object name="payment_ subjects" meta_type="CPS Vocabulary"/>33 <object name="payment_categories" meta_type="CPS Vocabulary"/> 34 34 <object name="exam_types" meta_type="CPS Vocabulary"/> 35 35 <object name="pin_prefixes" meta_type="CPS Vocabulary"/> … … 49 49 <object name="screening_types" meta_type="CPS Vocabulary"/> 50 50 <object name="aos" meta_type="CPS Vocabulary"/> 51 <object name="application_status" meta_type="CPS Vocabulary"/> 51 <object name="application_status" meta_type="CPS Vocabulary"/> 52 52 </object> -
WAeUP_SRP/fceokene/waeup_custom/getInterswitchParams.py
r2857 r2891 10 10 # $Id$ 11 11 12 test = " simulate"12 test = "" 13 13 d = {} 14 d['payment_possible'] = True 14 d['payment_possible'] = True 15 15 d['pay_ship_to'] = "Federal College Okene" 16 16 … … 18 18 d['site_name'] = "fceokene.waeup.org" 19 19 d['currency_id'] = '566' 20 d['type'] = 'online' 21 d['status'] = 'started' 20 d['type'] = 'online' 21 d['status'] = 'started' 22 22 d['surcharge'] = '150' 23 23 d['payment_params'] = 'switch_college_split' 24 24 if test == 'simulate': 25 d['action'] = "%s/payments/%s/simulate_callback" % (student.absolute_url(),payment_id) 25 d['action'] = "%s/payments/%s/simulate_callback" % (student.absolute_url(),payment_id) #do not use simulate_callback 26 26 elif test == 'test': 27 d['action'] = "https://webpay.interswitchng.com/test paydirect/webpay/pay.aspx"27 d['action'] = "https://webpay.interswitchng.com/test_paydirect/webpay/pay.aspx" 28 28 else: 29 29 d['action'] = "https://webpay.interswitchng.com/paydirect/webpay/pay.aspx" 30 30 if paytype in ("HOM",): 31 31 d['callback_function'] = 'interswitch_acco_cb' 32 d['pay_item_id'] = '8302' 33 d[' description'] = d['type_description'] = 'Hostel Maintenance Fee'34 d['pay_item_name'] = "FCE Okene %( description)s" % d35 d['amount'] = '4000' 36 d[' subject'] = 'hostel_maintenance'37 d[' target'] = paytype32 d['pay_item_id'] = '8302' 33 d['type_description'] = 'Hostel Maintenance Fee' 34 d['pay_item_name'] = "FCE Okene %(type_description)s" % d 35 d['amount'] = '4000' 36 d['category'] = 'hostel_maintenance' 37 d['item'] = paytype 38 38 39 39 return d -
WAeUP_SRP/fceokene/waeup_custom/getPaymentsFolderInfo.py
r2890 r2891 43 43 #student = getattr(students,student_id) 44 44 student_record = context.students_catalog.getRecordByKey(student_id) 45 context['updatePayments']()45 #context['updatePayments']() 46 46 payments = [] 47 47 … … 98 98 hasattr(so_doc, 'order_id') and not so_doc.resp_code) or str(member) in ('admin','gbenga','isouaba'): 99 99 row['is_requeryable'] = True 100 row['callback_url'] = "%s/payments/%s/interswitch_cb" % (student.absolute_url(), 101 so.getId) 100 row['callback_url'] = "%s/interswitch_cb" % (payments_path) 102 101 href = '%(query_url)s' % info 103 102 href += '?transRef=%(trans_ref)s' % row -
WAeUP_SRP/fceokene/waeup_custom/pay_interswitch.py
r2883 r2891 62 62 info['status'] = 'started' 63 63 info['session_id'] = student_record.session 64 info[' target'] = student_record.course65 info[' subject'] = 'schoolfee'64 info['item'] = student_record.course 65 info['category'] = 'schoolfee' 66 66 info['student_email'] = student_record.email 67 67 now = DateTime.DateTime()
Note: See TracChangeset for help on using the changeset viewer.