Ignore:
Timestamp:
14 Jul 2010, 14:56:06 (14 years ago)
Author:
Henrik Bettermann
Message:

fix request payment (completely untested)

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

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_aaue/interswitch_request_cb.py

    r5190 r5265  
    9191    pd['status'] = 'failed'
    9292    pd['resp_desc'] = pd['msg']
     93    pd['resp_code'] = 'RP'
    9394    pd['date'] = now
    9495
    9596review_state = wftool.getInfoFor(context,'review_state',None)
    96 if not pd['resp_approved_amount']:
    97     logger.info('%s requeried payment %s for %s and got empty response' % (member,context.getId(),student_id))
    98     return request.RESPONSE.redirect("%s/waeup_document_view" % context.absolute_url())
    9997if access_info['is_student'] and review_state == 'closed':
    10098    wftool.doActionFor(context,'open')
     
    114112next_previous_verdict = next_info['next_previous_verdict']
    115113
    116 if  resp:
     114if  resp != '0':
    117115    if pay_doc.category == 'schoolfee': 
    118116        if context.getStudentReviewState() == "school_fee_paid":
     
    138136
    139137    logger.info('%s received valid callback' % student_id)
     138    logger.info('%s paid first instalment' % student_id)
    140139
    141140else:
  • WAeUP_SRP/trunk/skins/waeup_aaue/interswitch_request_cb2.py

    r5193 r5265  
    9191    pd['status'] = 'failed'
    9292    pd['resp_desc'] = pd['msg']
     93    pd['resp_code'] = 'RP'
    9394    pd['date'] = now
    9495
    9596review_state = wftool.getInfoFor(context,'review_state',None)
    96 if not pd['resp_approved_amount']:
    97     logger.info('%s requeried payment %s for %s and got empty response' % (member,context.getId(),student_id))
    98     return request.RESPONSE.redirect("%s/waeup_document_view" % context.absolute_url())
    9997if access_info['is_student'] and review_state == 'closed':
    10098    wftool.doActionFor(context,'open')
     
    104102pay_doc.edit(mapping = pd)
    105103
    106 if  resp:
     104if  resp != '0':
    107105    logger.info('%s received valid callback' % student_id)
    108106    logger.info('%s paid second instalment' % student_id)
Note: See TracChangeset for help on using the changeset viewer.