Changeset 1643 for WAeUP_SRP/trunk


Ignore:
Timestamp:
26 Mar 2007, 20:33:49 (18 years ago)
Author:
Henrik Bettermann
Message:

changes in order to import the second transactions file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTool.py

    r1625 r1643  
    562562                format_error = format + ',"%(Error)s"'
    563563            data = {}
    564             data['datetime'] = date = DateTime.DateTime(pay_transaction['Date'])
     564           
     565            # format of the first file sent from Tayo
     566            #data['datetime'] = date = DateTime.DateTime(pay_transaction['Date'])
     567            #data['student_id'] = student_id = pay_transaction['Payer ID']
     568            #data['order_id'] = order_id = pay_transaction['Order ID (Tranx Ref)']
     569            #data['response_code'] = response_code = pay_transaction['Resp Code']
     570            #data['amount'] = amount = pay_transaction['Amount']
     571           
     572            # format of the second file sent from Tayo
     573            data['datetime'] = date = 0
    565574            data['student_id'] = student_id = pay_transaction['Payer ID']
    566575            data['order_id'] = order_id = pay_transaction['Order ID (Tranx Ref)']
    567             data['response_code'] = response_code = pay_transaction['Resp Code']
    568             data['amount'] = amount = pay_transaction['Amount']
     576            data['response_code'] = '00'
     577            data['amount'] = amount = pay_transaction['Amount']           
     578           
    569579            dup = False
    570580            if response_code == "12":
Note: See TracChangeset for help on using the changeset viewer.