Ignore:
Timestamp:
25 Oct 2019, 09:59:20 (5 years ago)
Author:
Henrik Bettermann
Message:

Add first Payoutlet components. Not yet tested.
Rename eTranzact.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/etranzact/applicantsbrowser.py

    r15600 r15702  
    4040    try:
    4141        return getattr(grok.getSite()['configuration'][str(session)],
    42             'etranzact_enabled', False)
     42            'etranzact_webconnect_enabled', False)
    4343    except KeyError:
    4444        return False
     
    5050    grok.require('waeup.payApplicant')
    5151    icon = 'actionicon_pay.png'
    52     text = _('Pay via eTranzact')
     52    text = _('Pay via Etranzact')
    5353    target = 'goto_etranzact'
    5454
     
    6767    grok.require('waeup.payApplicant')
    6868    icon = 'actionicon_call.png'
    69     text = _('Requery eTranzact History')
     69    text = _('Requery Etranzact History')
    7070    target = 'requery_history'
    7171
     
    7979
    8080class EtranzactPageApplicant(KofaPage):
    81     """ View which sends a POST request to the eTranzact payment gateway.
     81    """ View which sends a POST request to the Etranzact payment gateway.
    8282    """
    8383    grok.context(INigeriaApplicantOnlinePayment)
     
    8585    grok.template('goto_etranzact')
    8686    grok.require('waeup.payApplicant')
    87     label = _('Pay via eTranzact')
     87    label = _('Pay via Etranzact')
    8888    submit_button = _('Pay now')
    8989
     
    102102    def init_update(self):
    103103        if self.context.p_state == 'paid':
    104             return _("Payment ticket can't be re-sent to eTranzact.")
     104            return _("Payment ticket can't be re-sent to Etranzact.")
    105105        now = datetime.utcnow()
    106106        if self.context.creation_date.tzinfo is not None:
     
    112112        # In contrast to the procedure in the Remita and Interswitch modules,
    113113        # we do not call requery_history but receive and evaluate
    114         # the response form from eTranzact directly. This is possible
    115         # because eTranzact provides the FINAL_CHECKSUM hash value
     114        # the response form from Etranzact directly. This is possible
     115        # because Etranzact provides the FINAL_CHECKSUM hash value
    116116        # which authenticates the response.
    117117        self.responseurl = self.url(self.context, 'receive_etranzact')
    118         # Already now it becomes a eTranzact payment
     118        # Already now it becomes a Etranzact payment
    119119        self.context.r_company = u'etranzact'
    120120        hashargs =      self.amount + self.terminal_id+self.transaction_id \
     
    166166
    167167class EtranzactRequestPaymentStatusPageApplicant(UtilityView, grok.View):
    168     """ Request webservice view for the eTranzact gateway.
     168    """ Request webservice view for the Etranzact gateway.
    169169    """
    170170    grok.context(INigeriaApplicantOnlinePayment)
Note: See TracChangeset for help on using the changeset viewer.