Changeset 15702 for main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/etranzact/applicantsbrowser.py
- Timestamp:
- 25 Oct 2019, 09:59:20 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/etranzact/applicantsbrowser.py
r15600 r15702 40 40 try: 41 41 return getattr(grok.getSite()['configuration'][str(session)], 42 'etranzact_ enabled', False)42 'etranzact_webconnect_enabled', False) 43 43 except KeyError: 44 44 return False … … 50 50 grok.require('waeup.payApplicant') 51 51 icon = 'actionicon_pay.png' 52 text = _('Pay via eTranzact')52 text = _('Pay via Etranzact') 53 53 target = 'goto_etranzact' 54 54 … … 67 67 grok.require('waeup.payApplicant') 68 68 icon = 'actionicon_call.png' 69 text = _('Requery eTranzact History')69 text = _('Requery Etranzact History') 70 70 target = 'requery_history' 71 71 … … 79 79 80 80 class 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. 82 82 """ 83 83 grok.context(INigeriaApplicantOnlinePayment) … … 85 85 grok.template('goto_etranzact') 86 86 grok.require('waeup.payApplicant') 87 label = _('Pay via eTranzact')87 label = _('Pay via Etranzact') 88 88 submit_button = _('Pay now') 89 89 … … 102 102 def init_update(self): 103 103 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.") 105 105 now = datetime.utcnow() 106 106 if self.context.creation_date.tzinfo is not None: … … 112 112 # In contrast to the procedure in the Remita and Interswitch modules, 113 113 # we do not call requery_history but receive and evaluate 114 # the response form from eTranzact directly. This is possible115 # because eTranzact provides the FINAL_CHECKSUM hash value114 # the response form from Etranzact directly. This is possible 115 # because Etranzact provides the FINAL_CHECKSUM hash value 116 116 # which authenticates the response. 117 117 self.responseurl = self.url(self.context, 'receive_etranzact') 118 # Already now it becomes a eTranzact payment118 # Already now it becomes a Etranzact payment 119 119 self.context.r_company = u'etranzact' 120 120 hashargs = self.amount + self.terminal_id+self.transaction_id \ … … 166 166 167 167 class EtranzactRequestPaymentStatusPageApplicant(UtilityView, grok.View): 168 """ Request webservice view for the eTranzact gateway.168 """ Request webservice view for the Etranzact gateway. 169 169 """ 170 170 grok.context(INigeriaApplicantOnlinePayment)
Note: See TracChangeset for help on using the changeset viewer.