Changeset 1367 for WAeUP_SRP/trunk


Ignore:
Timestamp:
28 Jan 2007, 08:51:36 (18 years ago)
Author:
Henrik Bettermann
Message:

successful payment depends on respond code

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

Legend:

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

    r1365 r1367  
    3838    pd[pdk] = request.get(rc)
    3939context.getContent().edit(mapping=pd)
    40 resp = pd['resp_desc']
    41 if  resp.startswith('Appro') and resp.endswith('essful'):
     40#resp = pd['resp_desc']
     41#if  resp.startswith('Appro') and resp.endswith('essful'):
     42resp = pd['resp_code']
     43if  resp == '00':
    4244    wftool.doActionFor(student,'pay_school_fee')
    4345    logger.info('"%s", "received valid callback"' % student_id)
     46
    4447elif len(resp) < 3:
    4548    logger.info('"%s", "received no callback"' % student_id)
  • WAeUP_SRP/trunk/skins/waeup_epayment/simulate_callback.py

    r1362 r1367  
    1212
    1313args = {}
    14 args['x_RespDesc'] = 'Simulated'
    15 args['x_RespPayRef'] = 'GTB|WEB|ISW|7-01-2007|000579'
    16 args['x_RespCode'] = '00'
    17 args['x_CardNum'] = '0114'
     14args['x_RespDesc'] = 'Simulated Callback'
     15args['x_RespPayRef'] = 'GTB|WEB|ISW|1-01-2000|000234'
     16args['x_RespCode'] = 'XX'
     17args['x_CardNum'] = '0000'
    1818args['x_ApprAmt'] = REQUEST.get('x_amt')
    1919
Note: See TracChangeset for help on using the changeset viewer.