Ignore:
Timestamp:
21 Jun 2019, 08:28:09 (6 years ago)
Author:
Henrik Bettermann
Message:

Store xml split data in payment ticket.

File:
1 edited

Legend:

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

    r15467 r15471  
    590590        self.context.gateway_amt = self.amount_auth - gateway_net_amt(
    591591            self.amount_auth)
     592
     593        from xml.dom import minidom
     594        xmlitems = ''
     595        xmldoc = minidom.parseString(xmltext)
     596        itemlist = xmldoc.getElementsByTagName('item_detail')
     597        for s in itemlist:
     598            xmlitems += "%s: %s, N%s, %s (%s)  " % (
     599                s.attributes['item_id'].value,
     600                s.attributes['item_name'].value,
     601                int(s.attributes['item_amt'].value)/100,
     602                s.attributes['acct_num'].value,
     603                s.attributes['bank_id'].value,
     604
     605                )
     606
     607        self.context.p_split_data = xmlitems
     608
     609
     610
    592611        hashargs = (
    593612            self.context.p_id +
Note: See TracChangeset for help on using the changeset viewer.