Changeset 3232 for WAeUP_SRP/base


Ignore:
Timestamp:
26 Feb 2008, 06:22:58 (17 years ago)
Author:
Henrik Bettermann
Message:

close payment only if payment was successful

resolves #104 fce

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

Legend:

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

    r2964 r3232  
    7070
    7171review_state = wftool.getInfoFor(context,'review_state',None)
    72 if pd['resp_code'] == '' and review_state == 'opened':
     72if pd['resp_code'] == '':
    7373    logger.info('%s requeried payment %s and got empty response' % (student_id,context.getId()))
    74     wftool.doActionFor(context,'close')
    7574    return request.RESPONSE.redirect("%s/waeup_document_view" % context.absolute_url())
    7675pay_doc = context.getContent()
  • WAeUP_SRP/base/skins/waeup_epayment/interswitch_cb.py

    r2940 r3232  
    6969if pd['resp_code'] == '':
    7070    logger.info('%s requeried payment %s for %s and got empty response' % (member,context.getId(),student_id))
    71     if review_state == 'opened':
    72         wftool.doActionFor(context,'close')
     71    #if review_state == 'opened':
     72    #    wftool.doActionFor(context,'close')
    7373    return request.RESPONSE.redirect("%s/waeup_document_view" % context.absolute_url())
    7474try:
Note: See TracChangeset for help on using the changeset viewer.