Ignore:
Timestamp:
27 Jul 2008, 10:09:17 (16 years ago)
Author:
Henrik Bettermann
Message:

updated

Location:
WAeUP_SRP/aaua/waeup_custom
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/aaua/waeup_custom/getPaymentsFolderInfo.py

    r3312 r3586  
    7171elif review_state == 'returning' and info['next_session'] != session:
    7272    info['payment_method'] = "online_payment"
    73 info['prod_id'] = '83'
     73info['prod_id'] = '105'
    7474
    7575# end customization
  • WAeUP_SRP/aaua/waeup_custom/pay_interswitch.py

    r2913 r3586  
    4848    return context.interswitch_form(info=info)
    4949
    50 info['site_id'] = '83'
     50info['site_id'] = '105'
    5151info['currency_id'] = '566'
     52pay_item_id = "10500"
    5253
    53 pay_item_id = "8302"
    5454#info['type_code'] = sbrain.course  #type_code is redundant and will be removed soon
    5555info['bank'] = ''
     
    6767now = DateTime.DateTime()
    6868info['date'] = now
    69 info['pay_ship_to'] = "Federal College of Education Okene"
     69info['pay_ship_to'] = "Adekunle Ajasin University"
    7070timestamp = "%d" % int(now.timeTime()*1000)
    7171info['order_id'] = "%s%s" % (student_id[1:],timestamp)
     
    8282
    8383if True:
    84     info['action'] = "https://webpay.interswitchng.com/paydirect/webpay/pay.aspx"
     84    info['action'] = "https://webpay.interswitchng.com/test_paydirect/webpay/pay.aspx"
    8585else:
    8686    #pass
     
    128128    args[arg] = info[field]
    129129
     130bt_amount = 4000
     131
     132aaua_amount = amount - bt_amount
     133xmldict = {}
     134xmldict['detail_ref'] = args['txn_ref']
     135xmldict['department'] = student_record.department
     136xmldict['faculty'] = student_record.faculty
     137xmldict['aaua_amount'] = "%d" % int(100*aaua_amount)
     138xmldict['bt_amount'] = "%d" % int(100*bt_amount)
     139
     140
     141xmltext = """
     142<payment_item_detail>
     143<item_details detail_ref="%(detail_ref)s" college="AAUA" department="%(department)s" faculty="%(faculty)s">
     144<item_detail item_id="1" item_name="AAUA" item_amt="%(aaua_amount)s" bank_id="00" acct_num="0000000000000000" />
     145<item_detail item_id="2" item_name="BT" item_amt="%(bt_amount)s" bank_id="00" acct_num="0000000000000000" />
     146</item_details>
     147</payment_item_detail>
     148""" % xmldict
     149
     150
    130151args['Amount'] = "%d" % (total_amount)
    131 args['site_name'] = "fceokene.waeup.org"
     152args['site_name'] = "aaua.waeup.org"
    132153args['cust_name_desc'] = "Student Name"
    133154args['pay_item_id'] = pay_item_id
    134 args['pay_item_name'] = "FCEOKENE Tuition Payments"
    135 args['payment_params'] = 'switch_college_split'
    136 args['xml_data'] = ''
     155args['pay_item_name'] = "AAUA Tuition Payments"
     156args['payment_params'] = 'college_split'
     157#args['xml_data'] = ''
     158args['xml_data'] = xmltext
    137159info['args'] = args
    138160return context.goto_interswitch_form(info=info)
     161
Note: See TracChangeset for help on using the changeset viewer.