Ignore:
Timestamp:
29 Dec 2024, 21:10:50 (8 days ago)
Author:
Henrik Bettermann
Message:

Configure split payment parameter.

Location:
main/kofacustom.edopoly/trunk/src/kofacustom/edopoly
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/interswitch/browser.py

    r17936 r17978  
    275275PAY_ITEM_ID = 'Default_Payable_MX104253'
    276276
     277SPLITT_ACCOUNTS = {
     278        'schoolfee':            [{"alias":"espu school fees account","percentage":"100","description":"Tuition Exams Fee","isPrimary":"true"},],
     279        'clearance':            [{"alias":"espu school fees account","percentage":"85","description":"Acceptance Fee","isPrimary":"true"},
     280                                 {"alias":"waeac","percentage":"15","description":"WAEAC Fee"},],
     281        # 'bed_allocation': 'Accommodation Booking Fee',
     282        'hostel_maintenance':   [{"alias":"espu school fees account","description":"Hostel Maintenance Fee","isPrimary":"true"},],
     283        #'application': 'Application Fee',
     284        'ict_entre':            [{"alias":"espu school fees account","percentage":"70","description":"ICT and Entrepreneur Fee","isPrimary":"true"},
     285                                 {"alias":"waeac","percentage":"30","description":"Provider_amt"},],
     286        'logbook_combo':        [{"alias":"espu school fees account","percentage":"100","description":"Logbook Fee","isPrimary":"true"},],
     287        'siwess_combo':         [{"alias":"espu school fees account","description":"SIWES Fee","percentage":"100","isPrimary":"true"},],
     288        'transcript':           [{"alias":"espu school fees account","percentage":"100","description":"Transcript Fee","isPrimary":"true"},],
     289        #'certificate': 'Certificate Fee',
     290        'certificate_confirm':  [{"alias":"espu school fees account","percentage":"100","description":"Certificate Confirmation Fee","isPrimary":"true"},],
     291        'late_registration':    [{"alias":"espu school fees account","percentage":"100","description":"Late Course Registration Fee","isPrimary":"true"},],
     292        'final_clearance':      [{"alias":"espu school fees account","percentage":"100","description":"Final Clearance Fee","isPrimary":"true"},],
     293        'union':                [{"alias":"esp sug","percentage":"100","description":"Student Union Dues","isPrimary":"true"},],
     294        'admission_checking':   [{"alias":"espu school fees account","percentage":"100","description":"Admission Checking Fee,","isPrimary":"true"},],
     295        'medical':              [{"alias":"espu school fees account","percentage":"100","description":"Medical Lab. Test Fee","isPrimary":"true"},],
     296        'conv_nd':              [{"alias":"espu school fees account","percentage":"100","description":"ND Convocation Fee","isPrimary":"true"},],
     297        'conv_hnd':             [{"alias":"espu school fees account","percentage":"100","description":"HND Convocation Fee","isPrimary":"true"},],
     298        'nhis':                 [{"alias":"esp nhis","percentage":"100","description":"Tiship Fee","isPrimary":"true"},],
     299        'coc':                  [{"alias":"espu school fees account","percentage":"100","description":"Change of Course Fee","isPrimary":"true"},],
     300        'damages':              [{"alias":"espu school fees account","percentage":"100","description":"Damages Fee","isPrimary":"true"},],
     301        'project_bind':         [{"alias":"espu school fees account","percentage":"100","description":"Project Binding Fee","isPrimary":"true"},],
     302        'maintenance':          [{"alias":"espu school fees account","percentage":"100","description":"Maintenance & Utility Fee","isPrimary":"true"},],
     303        #'cyber': 'Cyber Security',
     304        'ispon':                [{"alias":"esp/ispon safety pp","percentage":"100","description":"ISPON Safety Fee","isPrimary":"true"},],
     305        'indigene':             [{"alias":"espu school fees account","percentage":"100","description":"Non-State Indigene Fee","isPrimary":"true"},],
     306        'develop':              [{"alias":"espu school fees account","percentage":"100","description":"Development Fee","isPrimary":"true"},],
     307        'sport':                [{"alias":"espu school fees account","percentage":"100","description":"Sport Development Fee","isPrimary":"true"},],
     308        'gown':                 [{"alias":"espu school fees account","percentage":"100","description":"Matriculation Gown Fee","isPrimary":"true"},],
     309        'global_practics':      [{"alias":"espu school fees account","percentage":"100","description":"Global Practice Fee","isPrimary":"true"},],
     310        }
     311
    277312class CustomWebCheckoutPageStudent(WebCheckoutPageStudent):
    278313    """ View which sends a POST request to the Interswitch
     
    287322    product_id = PRODUCT_ID
    288323
     324    @property
     325    def split_accounts(self):
     326        sa = SPLITT_ACCOUNTS.get(self.context.p_category, None)
     327        return str(sa)
     328
    289329class CustomWebCheckoutPageApplicant(WebCheckoutPageApplicant):
    290330    """ View which sends a POST request to the Interswitch
     
    297337    merchant_code = MERCHANT_CODE
    298338
     339    @property
     340    def split_accounts(self):
     341        sa = [{"alias": "espu school fees account","percentage":"","description":"Application Fee","isPrimary":"true"},]
     342        return str(sa)
     343
    299344class CustomWebCheckoutConfirmTransactionStudent(WebCheckoutConfirmTransactionStudent):
    300345    """ Request webservice view for the WebCheckout gateway
  • main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/utils/utils.py

    r17925 r17978  
    8080        'schoolfee': 'Tuition/Exams Fee',
    8181        'clearance': 'Acceptance Fee',
    82         'bed_allocation': 'Accommodation Booking Fee',
     82        #'bed_allocation': 'Accommodation Booking Fee',
    8383        'hostel_maintenance': 'Hostel Maintenance Fee',
    8484        'application': 'Application Fee',
     
    8787        'siwess_combo': 'SIWESS Combo Fee',
    8888        #'transcript': 'Transcript Fee',
    89         'certificate': 'Certificate Fee',
     89        #'certificate': 'Certificate Fee',
    9090        'certificate_confirm': 'Certificate Confirmation Fee',
    9191        'late_registration': 'Late Course Registration Fee',
     
    101101        'project_bind': 'Project Binding Fee',
    102102        'maintenance':'Maintenance and Utility Fees',
    103         'cyber': 'Cyber Security',
     103        #'cyber': 'Cyber Security',
    104104        'ispon': 'ISPON Safety',
    105105        'indigene': 'Non-State Indigene Fee',
Note: See TracChangeset for help on using the changeset viewer.