Changeset 16593
- Timestamp:
- 31 Aug 2021, 15:26:46 (3 years ago)
- Location:
- main/kofacustom.ecns/trunk/src/kofacustom/ecns
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.ecns/trunk/src/kofacustom/ecns/etranzact/browser.py
r15847 r16593 52 52 53 53 def update(self): 54 if not webconnect_module_activated( 55 self.context.__parent__.__parent__.year, self.context): 56 self.flash(_('Forbidden'), type='danger') 57 self.redirect(self.url(self.context, '@@index')) 58 return 54 59 # Already now it becomes an Etranzact payment. We set the net amount 55 60 # and add the gateway amount. 56 if not webconnect_module_activated(57 self.context.__parent__.__parent__.year, self.context):58 return _("Etranzact payments deactivated.")59 61 if not self.context.r_company: 60 62 self.context.net_amt = self.context.amount_auth … … 67 69 self.flash(error, type='danger') 68 70 self.redirect(self.url(self.context, '@@index')) 69 return70 71 return 71 72 … … 94 95 95 96 def update(self): 97 if not webconnect_module_activated( 98 self.context.student.current_session, self.context): 99 self.flash(_('Forbidden'), type='danger') 100 self.redirect(self.url(self.context, '@@index')) 101 return 96 102 # Already now it becomes an Etranzact payment. We set the net amount 97 103 # and add the gateway amount. 98 if not webconnect_module_activated(99 self.context.student.current_session, self.context):100 return _("Etranzact payments deactivated.")101 104 if not self.context.r_company: 102 105 self.context.net_amt = self.context.amount_auth -
main/kofacustom.ecns/trunk/src/kofacustom/ecns/interswitch/browser.py
r16589 r16593 20 20 import grok 21 21 from kofacustom.nigeria.interswitch.browser import ( 22 module_activated, 22 23 InterswitchPaymentRequestWebservicePageApplicant, 23 24 InterswitchPaymentRequestWebservicePageStudent, … … 31 32 32 33 PRODUCT_ID = '' # must be provided by Interswitch 33 SITE_NAME = 'ecns -kofa.waeup.org'34 SITE_NAME = 'ecns.waeup.org' 34 35 PROVIDER_ACCT = '00000000' 35 36 PROVIDER_BANK_ID = '00' … … 63 64 64 65 def update(self): 66 if not module_activated( 67 self.context.student.current_session, self.context): 68 self.flash(_('Forbidden'), type='danger') 69 self.redirect(self.url(self.context, '@@index')) 70 return 65 71 error = self.init_update() 66 72 if error: … … 134 140 135 141 def update(self): 142 if not module_activated( 143 self.context.__parent__.__parent__.year, self.context): 144 self.flash(_('Forbidden'), type='danger') 145 self.redirect(self.url(self.context, '@@index')) 146 return 136 147 error = self.init_update() 137 148 if error: -
main/kofacustom.ecns/trunk/src/kofacustom/ecns/remita/browser.py
r15847 r16593 90 90 if not module_activated( 91 91 self.context.student.current_session, self.context): 92 self.flash(_('Forbidden'), type='danger') 93 self.redirect(self.url(self.context, '@@index')) 92 94 return 93 95 self.orderId = self.context.p_id … … 157 159 if not module_activated( 158 160 self.context.__parent__.__parent__.year, self.context): 161 self.flash(_('Forbidden'), type='danger') 162 self.redirect(self.url(self.context, '@@index')) 159 163 return 160 164 self.orderId = self.context.p_id
Note: See TracChangeset for help on using the changeset viewer.