- Timestamp:
- 25 Nov 2021, 14:45:45 (3 years ago)
- Location:
- main/kofacustom.dspg/trunk/src/kofacustom/dspg
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.dspg/trunk/src/kofacustom/dspg/interfaces.py
r16563 r16725 550 550 ) 551 551 552 pa_fee = schema.Float(553 title = _(u'PAD Pack'),554 default = 0.0,555 required = True,556 )552 #pa_fee = schema.Float( 553 # title = _(u'PAD Pack'), 554 # default = 0.0, 555 # required = True, 556 # ) 557 557 558 558 -
main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/browser.py
r16563 r16725 229 229 xmldict['institution_acct'] = '1012808851' 230 230 xmldict['institution_bank_id'] = '117' 231 elif self.context.p_category == 'pa':232 self.pay_item_id = '166'233 xmldict['institution_acct'] = '0160125880'234 xmldict['institution_bank_id'] = '11'235 231 elif self.context.p_category in SPECIAL_PAYMENT_PARAMS.keys(): 236 232 self.pay_item_id = SPECIAL_PAYMENT_PARAMS[self.context.p_category][0] … … 604 600 </payment_item_detail>""" % xmldict 605 601 602 if self.context.p_category == 'pa': 603 self.pay_item_id = '166' 604 # amount_auth is being ignored. However, the sum of all split payments 605 # must coincide with the amount_auth configured in students/utils.py 606 xmldict['amt1'] = 100 * 500 607 xmldict['amt2'] = 100 * 500 608 xmltext = """<payment_item_detail> 609 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s"> 610 <item_detail item_id="1" item_name="PAD" item_amt="%(amt1)d" bank_id="11" acct_num="0160125880" /> 611 <item_detail item_id="2" item_name="NAPAS" item_amt="%(amt2)d" bank_id="11" acct_num="0164863395" /> 612 </item_details> 613 </payment_item_detail>""" % xmldict 614 606 615 607 616 self.xml_data = """<input type="hidden" name="xml_data" value='%s' />""" % xmltext 608 617 self.context.provider_amt = provider_amt 609 618 self.context.gateway_amt = GATEWAY_AMT 619 self.context.net_amt = self.context.amount_auth - GATEWAY_AMT 610 620 self.amount_auth = int(100 * self.context.amount_auth) 611 621 hashargs = ( … … 697 707 self.context.provider_amt = provider_amt 698 708 self.context.gateway_amt = GATEWAY_AMT 709 self.context.net_amt = self.context.amount_auth - GATEWAY_AMT 699 710 self.amount_auth = int(100 * self.context.amount_auth) 700 711 hashargs = (
Note: See TracChangeset for help on using the changeset viewer.