Changeset 5603 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
1 Dec 2010, 12:38:52 (14 years ago)
Author:
Henrik Bettermann
Message:

Forword order_id to getInterswitchParams.py.

xmldictdetail_ref? = order_id in getInterswitchParams.py

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

Legend:

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

    r5601 r5603  
    55##bind script=script
    66##bind subpath=traverse_subpath
    7 ##parameters=paytype,student,payment_id,student_record
     7##parameters=paytype,student,payment_id,order_id,student_record
    88##title=
    99##
     
    4545    d['payment_params'] = 'college_split'
    4646    xmldict = {}
    47     xmldict['detail_ref'] = student_record.id
     47    xmldict['detail_ref'] = order_id
    4848    xmldict['department'] = student_record.department
    4949    xmldict['faculty'] = student_record.faculty
  • WAeUP_SRP/trunk/skins/waeup_futminna/pay_interswitch_acco.py

    r5601 r5603  
    3939timestamp = "%d" % int(now.timeTime()*1000)
    4040payment_id = "p%s" % timestamp
     41order_id = "%s%s" % (student_id[1:],timestamp)
    4142hostel = paytype == "HOM"
    4243if hostel:
    43     info = context.getInterswitchParams(paytype,student,payment_id,student_record)
     44    info = context.getInterswitchParams(paytype,student,payment_id,order_id,student_record)
    4445    info['student'] = student_record
    4546else:
     
    5253info['student_email'] = student_record.email
    5354info['date'] = now
    54 info['order_id'] = "%s%s" % (student_id[1:],timestamp)
     55info['order_id'] = order_id
    5556
    5657if "payments" not in student.objectIds():
Note: See TracChangeset for help on using the changeset viewer.