Changeset 1348


Ignore:
Timestamp:
25 Jan 2007, 17:06:21 (18 years ago)
Author:
Henrik Bettermann
Message:

condition for transition after call back changed

Location:
WAeUP_SRP/trunk/skins/waeup_epayment
Files:
2 edited

Legend:

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

    r1308 r1348  
    1313"""
    1414import logging
    15 logger = logging.getLogger('EPayment.')
     15logger = logging.getLogger('EPayment.CallBack')
    1616import DateTime
    1717
     
    2424
    2525student = getattr(students,student_id)
    26 sbrain = context.students_catalog(id=student_id)[0]
    27 res = context.portal_catalog(portal_type="Certificate",
    28                             id = sbrain.course)
    29 if not res:
    30     return None
    3126
    3227resp_codes = (("x_RespDesc","resp_desc"),
     
    4136    pd[pdk] = request.get(rc)
    4237context.getContent().edit(mapping=pd)
    43 wftool.doActionFor(student,'pay_school_fee')
     38if pd['resp_desc'] == 'Approved Successful':
     39    wftool.doActionFor(student,'pay_school_fee')
     40    logger.info('"%s", "received valid callback"' % student_id)
     41else:
     42    logger.info('"%s", "received no callback"' % student_id)   
    4443wftool.doActionFor(context,'close')
    4544
  • WAeUP_SRP/trunk/skins/waeup_epayment/pay_online.py

    r1311 r1348  
    1414from urllib import urlencode
    1515import logging
    16 logger = logging.getLogger('EPayment.')
     16logger = logging.getLogger('EPayment.PayOnline')
    1717import DateTime
    1818request = context.REQUEST
Note: See TracChangeset for help on using the changeset viewer.