Ignore:
Timestamp:
26 Oct 2011, 14:24:47 (13 years ago)
Author:
Henrik Bettermann
Message:

Print 'Successful Payment' if 'desc' is empty but payment was successful.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_futminna/getPaymentsFolderInfo.py

    r6911 r6957  
    109109    row['is_requeryable'] = "%s_%s" % (payment.category,payment.session_id) not in paid_fees and payment.type == 'online' or str(member) in ('admin',)
    110110    row['is_approvable'] = is_so and row['is_requeryable'] and payment.category == 'schoolfee' # does not make sense for maitenance
    111     row['resp_desc'] = payment.resp_desc or 'Payment Process Interrupted'
     111    if payment.resp_desc:
     112        row['resp_desc'] = payment.resp_desc
     113    elif payment.resp_code == '00':
     114        row['resp_desc'] = 'Successful Payment'
     115    else:
     116        row['resp_desc'] = 'Payment Process Interrupted'
     117    #row['resp_desc'] = payment.resp_desc or 'Payment Process Interrupted'
    112118    row['trans_ref'] = payment.order_id
    113119    if row['is_requeryable']:
Note: See TracChangeset for help on using the changeset viewer.