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

merge callback scripts and more

Location:
WAeUP_SRP/fceokene/waeup_custom
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/fceokene/waeup_custom/getInterswitchParams.py

    r3012 r3240  
    2828    d['action'] = "https://webpay.interswitchng.com/paydirect/webpay/pay.aspx"
    2929if paytype in ("HOM",):
    30     d['callback_function'] = 'interswitch_acco_cb'
     30    d['callback_function'] = 'interswitch_cb'
    3131    d['pay_item_id'] = '8300'
    3232    d['type_description'] = 'Hostel Maintenance Fee'
  • WAeUP_SRP/fceokene/waeup_custom/getPaymentsFolderInfo.py

    r3237 r3240  
    4747#student = getattr(students,student_id)
    4848student_record = context.students_catalog.getRecordByKey(student_id)
    49 #context['updatePayments']()
     49
    5050
    5151info = {}
     
    9393    url = row['url'] = "%s/p%s" % (payments_path,payment.order_id[6:])
    9494    row['is_requeryable'] = "%s_%s" % (payment.category,payment.session_id) not in paid_fees or str(member) in ('admin',)
    95     row['is_approvable'] = is_so and row['is_requeryable']
     95    row['is_approvable'] = is_so and row['is_requeryable'] and payment.category == 'schoolfee' # does not make sense for maitenance
    9696    row['resp_desc'] = payment.resp_desc or 'Payment Process Interrupted'
    9797    row['trans_ref'] = payment.order_id
    9898    if row['is_requeryable']:
    99         if payment.category == 'schoolfee':
    100             row['callback_url'] = "%(url)s/interswitch_cb" % row
    101         elif payment.category == 'hostel_maintenance':
    102             row['callback_url'] = "%(url)s/interswitch_acco_cb" % row
    103         else:
    104             row['callback_url'] = ''
     99        row['callback_url'] = "%(url)s/interswitch_cb" % row
     100#        if payment.category == 'schoolfee':
     101#            row['callback_url'] = "%(url)s/interswitch_cb" % row
     102#        elif payment.category == 'hostel_maintenance':
     103#            row['callback_url'] = "%(url)s/interswitch_acco_cb" % row
     104#        else:
    105105        href = '%(query_url)s' % info
    106106        href += '?transRef=%(trans_ref)s' % row
Note: See TracChangeset for help on using the changeset viewer.