Ignore:
Timestamp:
28 May 2015, 14:13:36 (10 years ago)
Author:
Henrik Bettermann
Message:

Increase payment ticket expiration period from 1 hour to 7 days.

Location:
main/kofacustom.nigeria/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/CHANGES.txt

    r13013 r13015  
    66
    77- Payment tickets must not be submitted to Interswitch if they
    8   are older than 1 day.
     8  are older than 7 days.
    99
    1010- Ensure that lga and nationality are not contradictory.
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/browser.py

    r13013 r13015  
    168168        tz = getUtility(IKofaUtils).tzinfo
    169169        time_delta = datetime.utcnow() - self.context.creation_date
    170         if time_delta.seconds > 3600:
     170        if time_delta.days > 7:
    171171            return _("This payment ticket is too old. Please create a new ticket.")
    172172        student = self.context.student
     
    231231        tz = getUtility(IKofaUtils).tzinfo
    232232        time_delta = datetime.utcnow() - self.context.creation_date
    233         if time_delta.seconds > 3600:
     233        if time_delta.days > 7:
    234234            return _("This payment ticket is too old. Please create a new ticket.")
    235235        self.applicant = self.context.__parent__
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/tests.py

    r12973 r13015  
    106106            '...<input type="hidden" name="amount" value="4000000" />...',
    107107            self.browser.contents)
    108         delta = timedelta(minutes=61)
     108        delta = timedelta(days=8)
    109109        self.payment.creation_date -= delta
    110110        self.browser.open(self.payment_url)
     
    113113            '...This payment ticket is too old. Please create a new ticket...',
    114114            self.browser.contents)
    115         delta = timedelta(minutes=2)
     115        delta = timedelta(days=2)
    116116        self.payment.creation_date += delta
    117117        self.browser.open(self.payment_url)
     
    158158            '...<input type="hidden" name="amount" value="100000" />...',
    159159            self.browser.contents)
    160         delta = timedelta(minutes=61)
     160        delta = timedelta(days=8)
    161161        self.payment.creation_date -= delta
    162162        self.browser.open(self.payment_url)
     
    165165            '...This payment ticket is too old. Please create a new ticket...',
    166166            self.browser.contents)
    167         delta = timedelta(minutes=2)
     167        delta = timedelta(days=2)
    168168        self.payment.creation_date += delta
    169169        self.browser.getLink("CollegePAY", index=0).click()
Note: See TracChangeset for help on using the changeset viewer.