Changeset 1593 for WAeUP_SRP/branches/uli/skins/waeup_epayment
- Timestamp:
- 19 Mar 2007, 18:57:54 (18 years ago)
- Location:
- WAeUP_SRP/branches/uli/skins/waeup_epayment
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/branches/uli/skins/waeup_epayment/approve_epayment.py
r1427 r1593 1 ## Script (Python) " epayment_cb"1 ## Script (Python) "approve_epayment" 2 2 ##bind container=container 3 3 ##bind context=context … … 10 10 # $Id: aprove_epayment.py 1425 2007-02-15 17:52:01Z joachim $ 11 11 """ 12 payment callback13 12 """ 14 13 import logging 15 logger = logging.getLogger(' EPayment.Approve')14 logger = logging.getLogger('Skins.approve_epayment') 16 15 import DateTime 17 16 if context.portal_membership.isAnonymousUser(): … … 42 41 if doc.type_description.startswith('School Fee'): 43 42 wftool.doActionFor(student,'pay_school_fee') 44 logger.info(' "%s", "approved epayment for","%s""' % (member,student_id))43 logger.info('%s approves epayment for %s' % (member,student_id)) 45 44 wftool.doActionFor(context,'close') 46 45 return request.RESPONSE.redirect("%s/waeup_document_view" % context.absolute_url()) -
WAeUP_SRP/branches/uli/skins/waeup_epayment/epayment_cb.py
r1367 r1593 13 13 """ 14 14 import logging 15 logger = logging.getLogger(' EPayment.CallBack')15 logger = logging.getLogger('Skins.epayment_cb') 16 16 import DateTime 17 17 if context.portal_membership.isAnonymousUser(): … … 43 43 if resp == '00': 44 44 wftool.doActionFor(student,'pay_school_fee') 45 logger.info(' "%s", "received valid callback"' % student_id)45 logger.info('%s received valid callback' % student_id) 46 46 47 47 elif len(resp) < 3: 48 logger.info(' "%s", "received no callback"' % student_id)48 logger.info('%s received no callback' % student_id) 49 49 else: 50 logger.info(' "%s", "received unsuccessfull callback"' % student_id)50 logger.info('%s received unsuccessfull callback' % student_id) 51 51 wftool.doActionFor(context,'close') 52 52 -
WAeUP_SRP/branches/uli/skins/waeup_epayment/getPaymentsFolderInfo.py
r1431 r1593 1 ## Script (Python) "getPayments Info"1 ## Script (Python) "getPaymentsFolderInfo" 2 2 ##bind container=container 3 3 ##bind context=context … … 12 12 Info for the PaymentsFolder 13 13 """ 14 import logging 15 logger = logging.getLogger('EPayment.Info') 14 #import logging 15 #logger = logging.getLogger('Skins.getPaymentsFolderInfo') 16 16 17 import DateTime 17 18 request = context.REQUEST … … 57 58 row['confirmed'] = 'unsuccessful' 58 59 payments.append(row) 59 60 60 61 61 62 info['payments'] = payments -
WAeUP_SRP/branches/uli/skins/waeup_epayment/pay_by_sc.py
r1390 r1593 14 14 import logging 15 15 from urllib import urlencode 16 logger = logging.getLogger(' EPayment.PayBySC')16 logger = logging.getLogger('Skins.pay_by_sc') 17 17 import DateTime 18 18 … … 85 85 wftool.doActionFor(payment,'close') 86 86 wftool.doActionFor(student,'pay_school_fee') 87 logger.info(' "%s", "paid school fee by scratch card"' % student_id)87 logger.info('%s paid school fee by scratch card' % student_id) 88 88 else: 89 logger.info(' "%s", "repeatedly paid school fee by scratch card"' % student_id)89 logger.info('%s repeatedly paid school fee by scratch card' % student_id) 90 90 url = "%s/payments" % (student.absolute_url()) 91 91 request.RESPONSE.redirect(url) -
WAeUP_SRP/branches/uli/skins/waeup_epayment/pay_online.py
r1365 r1593 14 14 from urllib import urlencode 15 15 import logging 16 logger = logging.getLogger(' EPayment.PayOnline')16 logger = logging.getLogger('Skins.pay_online') 17 17 import DateTime 18 18 … … 91 91 info['callback_url'] = "%s/payments/%s/epayment_cb" % (student.absolute_url(),p_id) 92 92 93 logger.info(' "%(student_id)s","%(type_description)s", "%(amount)s N"' % info)93 logger.info('%(student_id)s initiated online school fee payment' % info) 94 94 payment_fields = (('x_SiteID','site_id'), 95 95 ('x_Redirect_url','callback_url'), -
WAeUP_SRP/branches/uli/skins/waeup_epayment/simulate_callback.py
r1427 r1593 5 5 return html renderer + psm 6 6 """ 7 import DateTime ,logging7 import DateTime 8 8 current = DateTime.DateTime() 9 9 pr = context.portal_registration 10 logger = logging.getLogger('EPayment.Simulate')11 10 validate = REQUEST.has_key("cpsdocument_edit_button") 11 12 import logging 13 logger = logging.getLogger('Skins.simulate_callback') 12 14 13 15 args = {} … … 18 20 args['x_ApprAmt'] = REQUEST.get('x_amt') 19 21 22 23 student_id = context.getStudentId() 24 logger.info('%s received simulated callback' % student_id) 25 20 26 from urllib import urlencode 21 27 #url = "%s/epayment_cb/?%s" % (context.absolute_url(),urlencode(args))
Note: See TracChangeset for help on using the changeset viewer.