Ignore:
Timestamp:
19 Mar 2007, 21:45:44 (18 years ago)
Author:
joachim
Message:

merged changes from trunk to joachim-event-branch

Location:
WAeUP_SRP/branches/joachim-event-branch/skins/waeup_epayment
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/branches/joachim-event-branch/skins/waeup_epayment/approve_epayment.py

    r1427 r1596  
    1 ## Script (Python) "epayment_cb"
     1## Script (Python) "approve_epayment"
    22##bind container=container
    33##bind context=context
     
    1010# $Id: aprove_epayment.py 1425 2007-02-15 17:52:01Z joachim $
    1111"""
    12 payment callback
    1312"""
    1413import logging
    15 logger = logging.getLogger('EPayment.Approve')
     14logger = logging.getLogger('Skins.approve_epayment')
    1615import DateTime
    1716if context.portal_membership.isAnonymousUser():
     
    4241if doc.type_description.startswith('School Fee'):
    4342    wftool.doActionFor(student,'pay_school_fee')
    44 logger.info('"%s", "approved epayment for","%s""' % (member,student_id))
     43logger.info('%s approves epayment for %s' % (member,student_id))
    4544wftool.doActionFor(context,'close')
    4645return request.RESPONSE.redirect("%s/waeup_document_view" % context.absolute_url())
  • WAeUP_SRP/branches/joachim-event-branch/skins/waeup_epayment/epayment_cb.py

    r1367 r1596  
    1313"""
    1414import logging
    15 logger = logging.getLogger('EPayment.CallBack')
     15logger = logging.getLogger('Skins.epayment_cb')
    1616import DateTime
    1717if context.portal_membership.isAnonymousUser():
     
    4343if  resp == '00':
    4444    wftool.doActionFor(student,'pay_school_fee')
    45     logger.info('"%s", "received valid callback"' % student_id)
     45    logger.info('%s received valid callback' % student_id)
    4646
    4747elif len(resp) < 3:
    48     logger.info('"%s", "received no callback"' % student_id)
     48    logger.info('%s received no callback' % student_id)
    4949else:
    50     logger.info('"%s", "received unsuccessfull callback"' % student_id)
     50    logger.info('%s received unsuccessfull callback' % student_id)
    5151wftool.doActionFor(context,'close')
    5252
  • WAeUP_SRP/branches/joachim-event-branch/skins/waeup_epayment/getPaymentsFolderInfo.py

    r1431 r1596  
    1 ## Script (Python) "getPaymentsInfo"
     1## Script (Python) "getPaymentsFolderInfo"
    22##bind container=container
    33##bind context=context
     
    1212Info for the PaymentsFolder
    1313"""
    14 import logging
    15 logger = logging.getLogger('EPayment.Info')
     14#import logging
     15#logger = logging.getLogger('Skins.getPaymentsFolderInfo')
     16
    1617import DateTime
    1718request = context.REQUEST
     
    5758        row['confirmed'] = 'unsuccessful'
    5859    payments.append(row)
    59    
     60
    6061
    6162info['payments'] = payments
  • WAeUP_SRP/branches/joachim-event-branch/skins/waeup_epayment/pay_by_sc.py

    r1390 r1596  
    1414import logging
    1515from urllib import urlencode
    16 logger = logging.getLogger('EPayment.PayBySC')
     16logger = logging.getLogger('Skins.pay_by_sc')
    1717import DateTime
    1818
     
    8585    wftool.doActionFor(payment,'close')
    8686    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)
    8888else:
    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)
    9090url = "%s/payments" % (student.absolute_url())
    9191request.RESPONSE.redirect(url)
  • WAeUP_SRP/branches/joachim-event-branch/skins/waeup_epayment/pay_online.py

    r1365 r1596  
    1414from urllib import urlencode
    1515import logging
    16 logger = logging.getLogger('EPayment.PayOnline')
     16logger = logging.getLogger('Skins.pay_online')
    1717import DateTime
    1818
     
    9191info['callback_url'] = "%s/payments/%s/epayment_cb" % (student.absolute_url(),p_id)
    9292
    93 logger.info('"%(student_id)s","%(type_description)s", "%(amount)s N"' % info)
     93logger.info('%(student_id)s initiated online school fee payment' % info)
    9494payment_fields = (('x_SiteID','site_id'),
    9595                  ('x_Redirect_url','callback_url'),
  • WAeUP_SRP/branches/joachim-event-branch/skins/waeup_epayment/simulate_callback.py

    r1427 r1596  
    55return html renderer + psm
    66"""
    7 import DateTime,logging
     7import DateTime
    88current = DateTime.DateTime()
    99pr = context.portal_registration
    10 logger = logging.getLogger('EPayment.Simulate')
    1110validate = REQUEST.has_key("cpsdocument_edit_button")
     11
     12import logging
     13logger = logging.getLogger('Skins.simulate_callback')
    1214
    1315args = {}
     
    1820args['x_ApprAmt'] = REQUEST.get('x_amt')
    1921
     22
     23student_id = context.getStudentId()
     24logger.info('%s received simulated callback' % student_id)
     25
    2026from urllib import urlencode
    2127#url = "%s/epayment_cb/?%s" % (context.absolute_url(),urlencode(args))
Note: See TracChangeset for help on using the changeset viewer.