Ignore:
Timestamp:
12 May 2012, 08:43:51 (13 years ago)
Author:
Henrik Bettermann
Message:

Make waeup.uniben in line with base package. Fortunately we can now use the payment methods used in the base package and do no longer need the actions_after functions in w.u.students.utils and w.u.applicants.utils.

Interswitch and etranzact modules have not been tested with live gateways. The query functions and approval methods may fail.

Location:
main/waeup.uniben/trunk/src/waeup/uniben/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/students/interfaces.py

    r8416 r8430  
    372372        readonly = True,
    373373        )
     374
     375    def doAfterStudentPayment():
     376        """Process student after payment was made.
     377
     378        """
     379
     380    def approveStudentPayment():
     381        """Approve payment and process student.
     382
     383        """
     384
    374385ICustomStudentOnlinePayment['p_level'].order = ICustomStudentOnlinePayment[
    375386    'p_session'].order
  • main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py

    r8421 r8430  
    3333        return fee
    3434    return 0.0
    35 
    36 def actions_after_student_payment(student, payment, view):
    37     if payment.p_category == 'clearance':
    38         # Create CLR access code
    39         pin, error = create_accesscode('CLR',0,student.student_id)
    40         if error:
    41             view.flash(_('Valid callback received. ${a}',
    42                 mapping = {'a':error}))
    43             return
    44         payment.ac = pin
    45     elif payment.p_category == 'schoolfee':
    46         # Create SFE access code
    47         pin, error = create_accesscode('SFE',0,student.student_id)
    48         if error:
    49             view.flash(_('Valid callback received. ${a}',
    50                 mapping = {'a':error}))
    51             return
    52         payment.ac = pin
    53     elif payment.p_category == 'bed_allocation':
    54         # Create HOS access code
    55         pin, error = create_accesscode('HOS',0,student.student_id)
    56         if error:
    57             view.flash(_('Valid callback received. ${a}',
    58                 mapping = {'a':error}))
    59             return
    60         payment.ac = pin
    61     view.flash(_('Valid callback received.'))
    62     return
    6335
    6436class CustomStudentsUtils(StudentsUtils):
Note: See TracChangeset for help on using the changeset viewer.