Ignore:
Timestamp:
30 Dec 2006, 16:58:14 (18 years ago)
Author:
joachim
Message:

added jamb_reg_no checking + phone_nr
made schoolfee_code a string field in certificate.xml

Location:
WAeUP_SRP/trunk/skins/waeup_epayment
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_epayment/pay_online.py

    r1147 r1158  
    1010# $Id$
    1111"""
    12 return Info about the current Student
     12pay online
    1313"""
    1414import logging
     
    2424
    2525student = getattr(students,student_id)
     26sbrain = context.students_catalog(id=student_id)[0]
     27res = context.portal_catalog(portal_type="Certificate",
     28                                     id = sbrain.course)
     29if not res:
     30    return None
     31sfc = res[0].getObject().getContent().school_fee_code
    2632info = {}
    27 
     33info['callback_url'] = "%s/epayment_cb" % student.absolute_url()
     34info['payment_type_code'] = sfc
     35info['payment_type_description'] = "Schoolfee %s for 2006/2007 Session" % sfc
     36info['payment_bill_to'] = sbrain.name
     37info['payment_ship_to'] = "University of Benin"
     38info['student_id'] = student_id
     39info['student_name'] = sbrain.name
     40info['student_email'] = sbrain.email
     41info['order_id'] = "%s%s" % (student_id[1:],DateTime.DateTime().strftime("%d%m%y%H%M%S"))
     42info['amount'] = "75000"
     43return context.wema_form(info=info)
  • WAeUP_SRP/trunk/skins/waeup_epayment/wema_form.pt

    r1147 r1158  
    1212          <tr>
    1313            <input name="x_PaymentCode" type="hidden"
    14                    tal:attributes="info/payment_type_code" />
     14                   tal:attributes="value info/payment_type_code" />
    1515            <input name="x_PaymentDesc" type="hidden"
    16                    tal:attributes="info/payment_type_description" />
     16                   tal:attributes="value info/payment_type_description" />
    1717            <td >Description</td>
    1818            <td tal:content="info/payment_type_description"></td>
     
    2020          <tr>
    2121            <input name="x_Billto" type="hidden"
    22                    tal:attributes="info/payment_billto" />
     22                   tal:attributes="value info/payment_bill_to" />
    2323            <input name="x_Shipto" type="hidden"
    24                    tal:attributes="info/payment_shipto" />
     24                   tal:attributes="value info/payment_ship_to" />
    2525            <input name="x_PayersID" type="hidden"
    26                    tal:attributes="info/student_id" />
     26                   tal:attributes="value info/student_id" />
    2727            <input name="x_PayerName" type="hidden"
    28                    tal:attributes="info/student_name" />
     28                   tal:attributes="value info/student_name" />
    2929            <input name="x_PayerEmail" type="hidden"
    30                    tal:attributes="info/student_email" />
     30                   tal:attributes="value info/student_email" />
    3131            <input name="x_OrderID" type="hidden"
    32                    tal:attributes="info/order_id" />
    33             <td tal:content="info/payment_billto"></td>
     32                   tal:attributes="value info/order_id" />
     33            <td tal:content="info/payment_bill_to"></td>
    3434          </tr>
    3535          <tr>
    3636            <input name="x_amt" type="hidden"
    37                    tal:attributes="info/amount" />
     37                   tal:attributes="value info/amount" />
    3838            <td >Amount
    3939            </td>
Note: See TracChangeset for help on using the changeset viewer.