Ignore:
Timestamp:
2 Sep 2021, 12:02:24 (3 years ago)
Author:
Henrik Bettermann
Message:

Change dates.

File:
1 edited

Legend:

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

    r16574 r16599  
    3030    PAYDirectPageStudent, PAYDirectPageApplicant,
    3131    StudentRefNumberSlip, ApplicantRefNumberSlip,
     32    PAYDirectActionButtonApplicant,
     33    PAYDirectActionButtonStudent
    3234    )
    3335from kofacustom.iuokada.students.interfaces import ICustomStudentOnlinePayment
     
    282284MERCHANT_ID = '8124'
    283285
     286PAYDIRECTCATS = {
     287    }
     288
     289class CustomPAYDirectActionButtonStudent(PAYDirectActionButtonStudent):
     290
     291    @property
     292    def target_url(self):
     293        if self.context.p_category not in PAYDIRECTCATS.keys():
     294            return ''
     295        super(CustomPAYDirectActionButtonStudent, self).target_url
     296        return
     297
     298class CustomPAYDirectActionButtonApplicant(PAYDirectActionButtonApplicant):
     299
     300    @property
     301    def target_url(self):
     302        return ''
     303
    284304class CustomPAYDirectPageStudent(PAYDirectPageStudent):
    285305    """Inform student how to proceed
Note: See TracChangeset for help on using the changeset viewer.