Changeset 13015
- Timestamp:
- 28 May 2015, 14:13:36 (10 years ago)
- Location:
- main/kofacustom.nigeria/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/CHANGES.txt
r13013 r13015 6 6 7 7 - Payment tickets must not be submitted to Interswitch if they 8 are older than 1 day.8 are older than 7 days. 9 9 10 10 - Ensure that lga and nationality are not contradictory. -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/browser.py
r13013 r13015 168 168 tz = getUtility(IKofaUtils).tzinfo 169 169 time_delta = datetime.utcnow() - self.context.creation_date 170 if time_delta. seconds > 3600:170 if time_delta.days > 7: 171 171 return _("This payment ticket is too old. Please create a new ticket.") 172 172 student = self.context.student … … 231 231 tz = getUtility(IKofaUtils).tzinfo 232 232 time_delta = datetime.utcnow() - self.context.creation_date 233 if time_delta. seconds > 3600:233 if time_delta.days > 7: 234 234 return _("This payment ticket is too old. Please create a new ticket.") 235 235 self.applicant = self.context.__parent__ -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/tests.py
r12973 r13015 106 106 '...<input type="hidden" name="amount" value="4000000" />...', 107 107 self.browser.contents) 108 delta = timedelta( minutes=61)108 delta = timedelta(days=8) 109 109 self.payment.creation_date -= delta 110 110 self.browser.open(self.payment_url) … … 113 113 '...This payment ticket is too old. Please create a new ticket...', 114 114 self.browser.contents) 115 delta = timedelta( minutes=2)115 delta = timedelta(days=2) 116 116 self.payment.creation_date += delta 117 117 self.browser.open(self.payment_url) … … 158 158 '...<input type="hidden" name="amount" value="100000" />...', 159 159 self.browser.contents) 160 delta = timedelta( minutes=61)160 delta = timedelta(days=8) 161 161 self.payment.creation_date -= delta 162 162 self.browser.open(self.payment_url) … … 165 165 '...This payment ticket is too old. Please create a new ticket...', 166 166 self.browser.contents) 167 delta = timedelta( minutes=2)167 delta = timedelta(days=2) 168 168 self.payment.creation_date += delta 169 169 self.browser.getLink("CollegePAY", index=0).click()
Note: See TracChangeset for help on using the changeset viewer.