- Timestamp:
- 15 Jul 2020, 09:00:00 (4 years ago)
- Location:
- main/kofacustom.nigeria/trunk/src/kofacustom/nigeria
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/interfaces.py
r16161 r16167 578 578 source = LGASource(), 579 579 title = _(u'Nysc Location'), 580 description = _(u'Leave blank for exception sletters.'),580 description = _(u'Leave blank for exception letters.'), 581 581 required = False, 582 582 ) -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/etranzact/helpers.py
r16083 r16167 156 156 if not form or not form.get('SUCCESS', None): 157 157 msg = _('No (valid) response from Etranzact.') 158 log = ' No valid response from Etranzactfor payment %s' % payment.p_id158 log = 'invalid response for payment %s' % payment.p_id 159 159 payment.p_state = 'failed' 160 160 notify(grok.ObjectModifiedEvent(payment)) -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/helpers.py
r16114 r16167 182 182 # u'BankCode': u''} 183 183 184 185 if len(jr) < 8: 184 if not 'ResponseCode' in jr.keys() \ 185 or not 'ResponseDescription' in jr.keys() \ 186 or not 'Amount' in jr.keys(): 186 187 msg = _('Invalid callback: ${a}', mapping = {'a': str(jr)}) 187 188 log = 'invalid callback for payment %s: %s' % (payment.p_id, str(jr)) … … 194 195 payment.r_desc = jr['ResponseDescription'] 195 196 payment.r_amount_approved = jr['Amount'] / 100.0 196 payment.r_card_num = jr ['CardNumber']197 payment.r_card_num = jr.get('CardNumber', u'') 197 198 payment.r_pay_reference = jr.get('PaymentReference', u'') 198 199 #payment.r_company = u'interswitch'
Note: See TracChangeset for help on using the changeset viewer.