Changeset 1349 for WAeUP_SRP


Ignore:
Timestamp:
25 Jan 2007, 17:51:30 (18 years ago)
Author:
joachim
Message:

added case for empty response

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_epayment/epayment_cb.py

    r1348 r1349  
    3636    pd[pdk] = request.get(rc)
    3737context.getContent().edit(mapping=pd)
    38 if pd['resp_desc'] == 'Approved Successful':
     38resp = pd['resp_desc']
     39if  resp.startswith('Appro') and resp.endswith('essful'):
    3940    wftool.doActionFor(student,'pay_school_fee')
    4041    logger.info('"%s", "received valid callback"' % student_id)
     42elif len(resp) < 3:
     43    logger.info('"%s", "received no callback"' % student_id)   
    4144else:
    42     logger.info('"%s", "received no callback"' % student_id)   
     45    logger.info('"%s", "received unsuccessfull callback"' % student_id)   
    4346wftool.doActionFor(context,'close')
    4447
Note: See TracChangeset for help on using the changeset viewer.