Changeset 14376 for main


Ignore:
Timestamp:
7 Jan 2017, 09:03:33 (8 years ago)
Author:
Henrik Bettermann
Message:

Configure Interswitch split payment and eTrabzact payment type.

Location:
main/waeup.aaue/trunk/src/waeup/aaue
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/etranzact/browser.py

    r14234 r14376  
    142142            'STUDENTS-UNION-DUES': ('union',),
    143143            'STUDENTS-UNION-DUES-PT': ('union',),
     144
     145            'RESTITUTION-FEE': ('restitution',),
    144146            }
    145147
  • main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py

    r14364 r14376  
    523523</payment_item_detail>""" % xmldict
    524524
     525        # Restitution Fee
     526        elif self.context.p_category == 'restitution':
     527            self.pay_item_id = '117'
     528            xmldict['institution_acct'] = '0772002144'
     529            xmldict['institution_bank_id'] = '47'
     530            xmldict['institution_amt'] = 100 * (
     531                gateway_net_amt(self.context.amount_auth))
     532            xmltext = """<payment_item_detail>
     533<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
     534<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" />
     535</item_details>
     536</payment_item_detail>""" % xmldict
     537
    525538        self.xml_data = """<input type="hidden" name="xml_data" value='%s'  />""" % xmltext
    526539        self.context.provider_amt = provider_amt
Note: See TracChangeset for help on using the changeset viewer.