Ignore:
Timestamp:
9 Dec 2007, 13:41:15 (17 years ago)
Author:
Henrik Bettermann
Message:

show correct date format

interswitch_acco_cb fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_epayment/interswitch_acco_cb.py

    r2891 r2895  
    5353for rc,pdk in resp_codes:
    5454    pd[pdk] = request.get(rc,'')
    55    
    56    
     55
     56
    5757## for testing purposes
    5858pd['resp_desc'] = 'Simulated Callback'
     
    6060pd['resp_code'] = '00'
    6161pd['resp_card_num'] = '0000'
    62 pd['resp_approved_amount'] = '10000'   
     62pd['resp_approved_amount'] = '10000'
    6363
    6464if pd['resp_code'] == '00' and len(pd['resp_approved_amount']) > 4:
     
    6767else:
    6868    pd['resp_approved_amount'] = '0'
    69     pd['status'] = 'failed'   
     69    pd['status'] = 'failed'
    7070
    7171review_state = wftool.getInfoFor(context,'review_state',None)
     
    8282#next_session, next_session_str = context.getNextSessionId(session)
    8383
    84 if pay_doc.subject == 'hostel_maintenance':
     84if pay_doc.category == 'hostel_maintenance':
    8585    if  resp == '00':
    8686        d = {}
     
    100100        wftool.doActionFor(context,'close')
    101101    except:
    102         logger.info('%s no workflow action close' % student_id)       
     102        logger.info('%s no workflow action close' % student_id)
    103103    try:
    104104        wftool.doActionFor(acco_info['acco'],'pay_maintenance_fee',dest_container=acco_info['acco'])
     
    107107        logger.info('%s no workflow action pay_maintainance_fee' % student_id)
    108108        return request.RESPONSE.redirect("%s/waeup_document_view" % context.absolute_url())
    109  
     109
    110110
    111111else:
Note: See TracChangeset for help on using the changeset viewer.