Changeset 3594
- Timestamp:
- 30 Jul 2008, 12:24:50 (16 years ago)
- Location:
- WAeUP_SRP/aaua
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/aaua/profiles/default/layouts/application_pume.xml
r3592 r3594 512 512 <element value="edit"/> 513 513 </property> 514 <property name="hidden_layout_modes"/> 514 <property name="hidden_layout_modes"> 515 <element value="create"/> 516 </property> 515 517 <property name="hidden_readonly_layout_modes"/> 516 518 <property name="label_false">male</property> … … 635 637 <row> 636 638 <cell name="sex" ncols="2"/> 637 </row> 639 </row> 638 640 <row> 639 641 <cell name="email" ncols="2"/> -
WAeUP_SRP/aaua/waeup_custom/getPaymentsFolderInfo.py
r3586 r3594 103 103 start_pos = 6 104 104 url = row['url'] = "%s/p%s" % (payments_path,oid[start_pos:]) 105 row['is_requeryable'] = "%s_%s" % (payment.category,payment.session_id) not in paid_fees and payment.type == 'online' or str(member) in ('admin',)106 row['is_approvable'] = is_so and row['is_requeryable'] and payment.category == 'schoolfee' # does not make sense for mai tenance105 row['is_requeryable'] = "%s_%s" % (payment.category,payment.session_id) not in paid_fees and not payment.resp_desc and payment.type == 'online'# or str(member) in ('admin',) # customized too 106 row['is_approvable'] = is_so and row['is_requeryable'] and payment.category == 'schoolfee' # does not make sense for maintenance 107 107 row['resp_desc'] = payment.resp_desc or 'Payment Process Interrupted' 108 108 row['trans_ref'] = payment.order_id -
WAeUP_SRP/aaua/waeup_custom/goto_interswitch_form.pt
r2824 r3594 12 12 <input type="hidden" tal:attributes="name python:arg[0];value python:arg[1]" /> 13 13 </span> 14 15 <span tal:replace = "structure info/xml_data" /> 16 14 17 <table> 15 18 <tr> … … 42 45 class="standalone" 43 46 name="goto_bank" 44 value="Proceed to Payment Gateway"47 value="Proceed to Interswitch Payment Gateway" 45 48 /> 46 49 </form> -
WAeUP_SRP/aaua/waeup_custom/pay_interswitch.py
r3586 r3594 82 82 83 83 if True: 84 info['action'] = "https://webpay.interswitchng.com/ test_paydirect/webpay/pay.aspx"84 info['action'] = "https://webpay.interswitchng.com/paydirect/webpay/pay.aspx" 85 85 else: 86 86 #pass … … 137 137 xmldict['aaua_amount'] = "%d" % int(100*aaua_amount) 138 138 xmldict['bt_amount'] = "%d" % int(100*bt_amount) 139 if student_record.mode.endswith('_pt'): 140 xmldict['aaua_acct'] = "0321100000000046" 141 elif student_record.mode.endswith('_sw'): 142 xmldict['aaua_acct'] = "0321100000000056" 143 else: 144 xmldict['aaua_acct'] = "0000000000000000" 139 145 140 146 141 xmltext = """ 142 <payment_item_detail> 147 xmltext = """<payment_item_detail> 143 148 <item_details detail_ref="%(detail_ref)s" college="AAUA" department="%(department)s" faculty="%(faculty)s"> 144 <item_detail item_id="1" item_name="AAUA" item_amt="%(aaua_amount)s" bank_id=" 00" acct_num="0000000000000000" />145 <item_detail item_id="2" item_name="BT" item_amt="%(bt_amount)s" bank_id=" 00" acct_num="0000000000000000" />149 <item_detail item_id="1" item_name="AAUA" item_amt="%(aaua_amount)s" bank_id="89" acct_num="%(aaua_acct)s" /> 150 <item_detail item_id="2" item_name="BT" item_amt="%(bt_amount)s" bank_id="117" acct_num="6012015294" /> 146 151 </item_details> 147 </payment_item_detail> 148 """ % xmldict 152 </payment_item_detail>""" % xmldict 149 153 154 info['xml_data'] = """<input type="hidden" name="xml_data" value='%s' />""" % xmltext 150 155 151 156 args['Amount'] = "%d" % (total_amount) … … 156 161 args['payment_params'] = 'college_split' 157 162 #args['xml_data'] = '' 158 args['xml_data'] = xmltext 163 #args['xml_data'] = xmltext # info['xml_data']can be used instead 159 164 info['args'] = args 165 160 166 return context.goto_interswitch_form(info=info) 161 167
Note: See TracChangeset for help on using the changeset viewer.