Changeset 15512 for main/waeup.aaue/trunk/src/waeup/aaue/interswitch
- Timestamp:
- 24 Jul 2019, 19:59:27 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py
r15480 r15512 118 118 provider_amt = 1000.0 119 119 if self.applicant.__parent__.prefix in ('trans', 'cert'): 120 self.institution_acct = '1010827641' 121 self.institution_bank_id = '117' 120 122 self.provider_bank_id = '10' 121 123 self.provider_acct = '0427773399' 124 if self.applicant.applicant_id[:5] in ('cert7', 'cert8'): 125 provider_amt = 0.0 126 if self.applicant.applicant_id[:6] in ('trans5', 'trans6'): 127 self.institution_acct = '5210006575' 128 self.institution_bank_id = '5' 122 129 elif self.applicant.applicant_id.startswith('bridge',): # easier to test 123 130 self.institution_acct = '1014847058' 124 131 self.institution_bank_id = '7' 125 126 132 xmldict = {} 127 133 xmldict['detail_ref'] = self.context.p_id … … 136 142 xmldict['institution_amt'] = 100 * ( 137 143 self.context.amount_auth - provider_amt - GATEWAY_AMT) 144 138 145 xmltext = """<payment_item_detail> 139 146 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s"> 140 147 <item_detail item_id="1" item_name="%(institution_item_name)s" item_amt="%(institution_amt)d" bank_id="%(institution_bank_id)s" acct_num="%(institution_acct)s" /> 141 148 <item_detail item_id="2" item_name="%(provider_item_name)s" item_amt="%(provider_amt)d" bank_id="%(provider_bank_id)s" acct_num="%(provider_acct)s" /> 149 </item_details> 150 </payment_item_detail>""" % xmldict 151 152 if provider_amt == 0.0: 153 xmltext = """<payment_item_detail> 154 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s"> 155 <item_detail item_id="1" item_name="%(institution_item_name)s" item_amt="%(institution_amt)d" bank_id="%(institution_bank_id)s" acct_num="%(institution_acct)s" /> 142 156 </item_details> 143 157 </payment_item_detail>""" % xmldict
Note: See TracChangeset for help on using the changeset viewer.